diff --git a/src/Workloads/Workloads.Autorest/Az.Workloads.format.ps1xml b/src/Workloads/Workloads.Autorest/Az.Workloads.format.ps1xml
index 5506932775d2..05b6263e8eec 100644
--- a/src/Workloads/Workloads.Autorest/Az.Workloads.format.ps1xml
+++ b/src/Workloads/Workloads.Autorest/Az.Workloads.format.ps1xml
@@ -506,9 +506,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ApplicationServerConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ApplicationServerConfiguration
@@ -534,9 +534,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerFullResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ApplicationServerFullResourceNames
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerFullResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ApplicationServerFullResourceNames
@@ -556,9 +556,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerVMDetails
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ApplicationServerVMDetails
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerVMDetails
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ApplicationServerVMDetails
@@ -578,9 +578,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CentralServerConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.CentralServerConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CentralServerConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.CentralServerConfiguration
@@ -606,9 +606,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CentralServerFullResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.CentralServerFullResourceNames
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CentralServerFullResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.CentralServerFullResourceNames
@@ -628,9 +628,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CentralServerVMDetails
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.CentralServerVMDetails
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CentralServerVMDetails
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.CentralServerVMDetails
@@ -650,9 +650,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CreateAndMountFileShareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.CreateAndMountFileShareConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CreateAndMountFileShareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.CreateAndMountFileShareConfiguration
@@ -684,9 +684,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DatabaseConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DatabaseConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DatabaseConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DatabaseConfiguration
@@ -718,9 +718,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DatabaseServerFullResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DatabaseServerFullResourceNames
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DatabaseServerFullResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DatabaseServerFullResourceNames
@@ -740,9 +740,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DatabaseVMDetails
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DatabaseVMDetails
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DatabaseVMDetails
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DatabaseVMDetails
@@ -768,85 +768,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Db2ProviderInstanceProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Db2ProviderInstanceProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ProviderType
-
-
- DbName
-
-
- DbPassword
-
-
- DbPasswordUri
-
-
- DbPort
-
-
- DbUsername
-
-
- Hostname
-
-
- SapSid
-
-
- SslCertificateUri
-
-
- SslPreference
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DeployerVMPackages
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DeployerVMPackages
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DeployerVMPackages
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DeployerVMPackages
@@ -872,9 +796,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DeploymentConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DeploymentConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DeploymentConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DeploymentConfiguration
@@ -900,9 +824,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DeploymentWithOSConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DeploymentWithOSConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DeploymentWithOSConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DeploymentWithOSConfiguration
@@ -928,9 +852,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiscoveryConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiscoveryConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiscoveryConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiscoveryConfiguration
@@ -968,9 +892,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskDetails
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskDetails
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskDetails
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskDetails
@@ -1020,9 +944,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskSku
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskSku
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskSku
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskSku
@@ -1042,9 +966,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskVolumeConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskVolumeConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskVolumeConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskVolumeConfiguration
@@ -1070,9 +994,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.EnqueueReplicationServerProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.EnqueueReplicationServerProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.EnqueueReplicationServerProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.EnqueueReplicationServerProperties
@@ -1128,9 +1052,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.EnqueueServerProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.EnqueueServerProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.EnqueueServerProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.EnqueueServerProperties
@@ -1168,43 +1092,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Error
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Error
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code
-
-
- Message
-
-
- Target
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ErrorDefinition
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ErrorDefinition
@@ -1230,9 +1120,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ExternalInstallationSoftwareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ExternalInstallationSoftwareConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ExternalInstallationSoftwareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ExternalInstallationSoftwareConfiguration
@@ -1258,9 +1148,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.FileShareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.FileShareConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.FileShareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.FileShareConfiguration
@@ -1280,9 +1170,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.GatewayServerProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.GatewayServerProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.GatewayServerProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.GatewayServerProperties
@@ -1308,97 +1198,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.HanaDbProviderInstanceProperties
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.HanaDbProviderInstanceProperties
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ProviderType
-
-
- DbName
-
-
- DbPassword
-
-
- DbPasswordUri
-
-
- DbUsername
-
-
- Hostname
-
-
- InstanceNumber
-
-
- SapSid
-
-
- SqlPort
-
-
- SslCertificateUri
-
-
- SslHostNameInCertificate
-
-
- SslPreference
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.HighAvailabilityConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.HighAvailabilityConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.HighAvailabilityConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.HighAvailabilityConfiguration
@@ -1418,9 +1220,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.HighAvailabilitySoftwareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.HighAvailabilitySoftwareConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.HighAvailabilitySoftwareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.HighAvailabilitySoftwareConfiguration
@@ -1446,9 +1248,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReference
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ImageReference
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReference
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ImageReference
@@ -1486,9 +1288,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.InfrastructureConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.InfrastructureConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.InfrastructureConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.InfrastructureConfiguration
@@ -1514,9 +1316,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LinuxConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LinuxConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LinuxConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LinuxConfiguration
@@ -1542,9 +1344,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerResourceNames
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerResourceNames
@@ -1582,31 +1384,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ManagedRgConfiguration
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ManagedRgConfiguration
-
-
-
-
-
-
-
-
-
-
-
- Name
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MessageServerProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.MessageServerProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MessageServerProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.MessageServerProperties
@@ -1662,45 +1442,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Monitor
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.MountFileShareConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Monitor
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.MountFileShareConfiguration
-
-
-
-
-
-
-
-
-
-
+
-
+
- Name
-
-
- ResourceGroupName
-
-
- ManagedResourceGroupConfigurationName
-
-
- Location
+ ConfigurationType
- ProvisioningState
+ PrivateEndpointId
@@ -1708,21 +1470,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MonitorListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.NetworkConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MonitorListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.NetworkConfiguration
-
+
- NextLink
+ IsSecondaryIPEnabled
@@ -1730,63 +1492,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MonitorProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.NetworkInterfaceResourceNames
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MonitorProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.NetworkInterfaceResourceNames
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- AppLocation
-
-
- LogAnalyticsWorkspaceArmId
-
-
- MonitorSubnet
-
-
- MsiArmId
-
-
- ProvisioningState
-
-
- RoutingPreference
-
-
- StorageAccountArmId
-
-
- ZoneRedundancyPreference
+ NetworkInterfaceName
@@ -1794,33 +1514,49 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MonitorPropertiesErrors
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MonitorPropertiesErrors
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfiguration
-
+
+
+
+
+
+
+ OSType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSProfile
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSProfile
+
+
+
-
+
-
+
- Code
-
-
- Message
+ AdminPassword
- Target
+ AdminUsername
@@ -1828,27 +1564,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MountFileShareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSSapConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MountFileShareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSSapConfiguration
-
-
-
-
+
- ConfigurationType
-
-
- PrivateEndpointId
+ SapFqdn
@@ -1856,69 +1586,57 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MSSqlServerProviderInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapApplicationServerInstance
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MSSqlServerProviderInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapApplicationServerInstance
-
+
-
+
-
+
-
+
-
+
-
-
-
-
-
-
-
+
- ProviderType
+ Name
- DbPassword
+ ResourceGroupName
- DbPasswordUri
+ Health
- DbPort
+ ProvisioningState
- DbUsername
+ StatusHostname
- SapSid
-
-
- SslCertificateUri
-
-
- SslPreference
+ Location
@@ -1926,21 +1644,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.NetworkConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapApplicationServerInstanceList
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.NetworkConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapApplicationServerInstanceList
-
+
- IsSecondaryIPEnabled
+ NextLink
@@ -1948,79 +1666,93 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.NetworkInterfaceResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapApplicationServerProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.NetworkInterfaceResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapApplicationServerProperties
-
+
-
-
-
-
-
- NetworkInterfaceName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsContent
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsContent
-
-
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Name
+ DispatcherStatus
- SystemDataCreatedAt
+ GatewayPort
- SystemDataCreatedBy
+ Health
- SystemDataCreatedByType
+ Hostname
- SystemDataLastModifiedAt
+ IPAddress
- SystemDataLastModifiedBy
+ IcmHttpPort
- SystemDataLastModifiedByType
+ IcmHttpsPort
+
+
+ InstanceNo
+
+
+ KernelPatch
+
+
+ KernelVersion
+
+
+ ProvisioningState
+
+
+ Status
+
+
+ Subnet
@@ -2028,39 +1760,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapAvailabilityZoneDetailsRequest
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapAvailabilityZoneDetailsRequest
-
-
-
-
+
-
+
-
+
- ActionType
-
-
- IsDataAction
+ AppLocation
- Name
+ DatabaseType
- Origin
+ SapProduct
@@ -2068,21 +1794,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDefinitionArrayResponseWithContinuation
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapAvailabilityZonePair
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDefinitionArrayResponseWithContinuation
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapAvailabilityZonePair
-
+
+
+
+
- NextLink
+ ZoneA
+
+
+ ZoneB
@@ -2090,39 +1822,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDefinitionDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapCentralInstanceList
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDefinitionDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapCentralInstanceList
-
-
-
-
-
-
-
-
-
-
+
- Description
-
-
- Operation
-
-
- Provider
-
-
- Resource
+ NextLink
@@ -2130,61 +1844,57 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDisplayDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapCentralServerInstance
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDisplayDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapCentralServerInstance
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
- Description
+ Name
- Operation
+ ResourceGroupName
- Provider
+ Health
- Resource
+ EnqueueServerPropertyHostname
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfiguration
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfiguration
-
-
-
-
-
-
-
-
-
-
- OSType
+ ProvisioningState
+
+
+ Status
+
+
+ Location
@@ -2192,27 +1902,57 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfile
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapCentralServerProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfile
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapCentralServerProperties
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- AdminPassword
+ Health
- AdminUsername
+ InstanceNo
+
+
+ KernelPatch
+
+
+ KernelVersion
+
+
+ ProvisioningState
+
+
+ Status
+
+
+ Subnet
@@ -2220,21 +1960,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSSapConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSSapConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapConfiguration
-
+
- SapFqdn
+ ConfigurationType
@@ -2242,57 +1982,57 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.PrometheusHaClusterProviderInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapDatabaseInstance
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.PrometheusHaClusterProviderInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapDatabaseInstance
-
+
-
+
-
+
-
+
-
+
-
+
-
+
- ProviderType
+ Name
- ClusterName
+ ResourceGroupName
- Hostname
+ ProvisioningState
- PrometheusUrl
+ Location
- Sid
+ Status
- SslCertificateUri
+ IPAddress
- SslPreference
+ DatabaseSid
@@ -2300,45 +2040,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.PrometheusOSProviderInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapDatabaseInstanceList
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.PrometheusOSProviderInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapDatabaseInstanceList
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- ProviderType
-
-
- PrometheusUrl
-
-
- SapSid
-
-
- SslCertificateUri
-
-
- SslPreference
+ NextLink
@@ -2346,39 +2062,51 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstance
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapDatabaseProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstance
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapDatabaseProperties
-
+
-
+
+
+
+
-
+
+
+
+
- Name
+ DatabaseSid
- ResourceGroupName
+ DatabaseType
+
+
+ IPAddressProvisioningState
- IdentityType
+ Status
+
+
+ Subnet
@@ -2386,21 +2114,51 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstanceListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapDiskConfigurationsRequest
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstanceListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapDiskConfigurationsRequest
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- NextLink
+ AppLocation
+
+
+ DatabaseType
+
+
+ DbVMSku
+
+
+ DeploymentType
+
+
+ Environment
+
+
+ SapProduct
@@ -2408,21 +2166,39 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapInstallWithoutOsconfigSoftwareConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapInstallWithoutOsconfigSoftwareConfiguration
-
+
+
+
+
+
+
+
+
+
+
- ProvisioningState
+ SoftwareInstallationType
+
+
+ BomUrl
+
+
+ SapBitsStorageAccountId
+
+
+ SoftwareVersion
@@ -2430,33 +2206,69 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstancePropertiesErrors
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapSizingRecommendationRequest
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstancePropertiesErrors
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapSizingRecommendationRequest
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Code
+ AppLocation
- Message
+ DatabaseType
- Target
+ DbMemory
+
+
+ DbScaleMethod
+
+
+ DeploymentType
+
+
+ Environment
+
+
+ HighAvailabilityType
+
+
+ Sap
+
+
+ SapProduct
@@ -2464,21 +2276,107 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderSpecificProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapSizingRecommendationResult
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderSpecificProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapSizingRecommendationResult
-
+
- ProviderType
+ DeploymentType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapSupportedSku
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapSupportedSku
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ IsAppServerCertified
+
+
+ IsDatabaseCertified
+
+
+ VMSku
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapSupportedSkusRequest
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapSupportedSkusRequest
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AppLocation
+
+
+ DatabaseType
+
+
+ DeploymentType
+
+
+ Environment
+
+
+ HighAvailabilityType
+
+
+ SapProduct
@@ -2486,9 +2384,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapApplicationServerInstance
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapVirtualInstance
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapApplicationServerInstance
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapVirtualInstance
@@ -2501,14 +2399,20 @@
+
+
+
-
+
-
+
+
+
+
@@ -2526,14 +2430,20 @@
Health
+
+ Environment
+ ProvisioningState
- Status
+ SapProduct
- Hostname
+ State
+
+
+ StatusLocation
@@ -2544,9 +2454,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapApplicationServerInstanceList
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapVirtualInstanceList
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapApplicationServerInstanceList
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapVirtualInstanceList
@@ -2566,121 +2476,109 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapApplicationServerProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapVirtualInstanceProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapApplicationServerProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapVirtualInstanceProperties
-
+
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
+
-
+
-
+
-
-
-
- GatewayPort
+ EnvironmentHealth
- Hostname
-
-
- IPAddress
-
-
- IcmHttpPort
-
-
- IcmHttpsPort
+ ManagedResourcesNetworkAccessType
- InstanceNo
-
-
- KernelPatch
+ ProvisioningState
- KernelVersion
+ SapProduct
- ProvisioningState
+ StateStatus
-
- Subnet
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapAvailabilityZoneDetailsRequest
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ServiceInitiatedSoftwareConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapAvailabilityZoneDetailsRequest
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ServiceInitiatedSoftwareConfiguration
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
- AppLocation
+ SoftwareInstallationType
- DatabaseType
+ BomUrl
- SapProduct
+ SapBitsStorageAccountId
+
+
+ SapFqdn
+
+
+ SoftwareVersion
+
+
+ SshPrivateKey
@@ -2688,27 +2586,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapAvailabilityZonePair
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SharedStorageResourceNames
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapAvailabilityZonePair
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SharedStorageResourceNames
-
+
-
+
- ZoneA
+ SharedStorageAccountName
- ZoneB
+ SharedStorageAccountPrivateEndPointName
@@ -2716,79 +2614,61 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapCentralInstanceList
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SingleServerConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapCentralInstanceList
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SingleServerConfiguration
-
+
+
+
+
+
+
+
+
+
+
- NextLink
+ AppResourceGroup
-
-
-
-
-
+
+ DeploymentType
+
+
+ DatabaseType
+
+
+ SubnetId
+
+
+
+
+
+
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapCentralServerInstance
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SingleServerCustomResourceNames
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapCentralServerInstance
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SingleServerCustomResourceNames
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- Name
-
-
- ResourceGroupName
-
-
- Health
-
-
- EnqueueServerPropertyHostname
-
-
- ProvisioningState
-
-
- Status
-
-
- Location
+ NamingPatternType
@@ -2796,57 +2676,49 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapCentralServerProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SingleServerFullResourceNames
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapCentralServerProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SingleServerFullResourceNames
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ NamingPatternType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SingleServerRecommendationResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SingleServerRecommendationResult
+
+
+
-
+
-
+
- Health
-
-
- InstanceNo
-
-
- KernelPatch
-
-
- KernelVersion
-
-
- ProvisioningState
-
-
- Status
+ DeploymentType
- Subnet
+ VMSku
@@ -2854,9 +2726,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SkipFileShareConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SkipFileShareConfiguration
@@ -2876,57 +2748,49 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapDatabaseInstance
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SoftwareConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapDatabaseInstance
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SoftwareConfiguration
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ SoftwareInstallationType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshKeyPair
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshKeyPair
+
+
+
-
+
-
+
- Name
-
-
- ResourceGroupName
-
-
- ProvisioningState
-
-
- Location
-
-
- Status
-
-
- IPAddress
+ PrivateKey
- DatabaseSid
+ PublicKey
@@ -2934,21 +2798,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapDatabaseInstanceList
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshPublicKey
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapDatabaseInstanceList
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshPublicKey
-
+
- NextLink
+ KeyData
@@ -2956,51 +2820,121 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapDatabaseProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.StartRequest
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapDatabaseProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.StartRequest
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ StartVM
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.StopRequest
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.StopRequest
+
+
+
-
+
-
+
- DatabaseSid
+ DeallocateVM
- DatabaseType
+ SoftStopTimeoutSecond
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ThreeTierConfiguration
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ThreeTierConfiguration
+
+
+
+
+
+
+
+
+
+
+
+
+
- IPAddress
+ AppResourceGroup
- ProvisioningState
+ DeploymentType
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ThreeTierCustomResourceNames
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ThreeTierCustomResourceNames
+
+
+
+
+
+
+
+
+
+
- Status
+ NamingPatternType
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ThreeTierFullResourceNames
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ThreeTierFullResourceNames
+
+
+
+
+
+
+
+
+
+
- Subnet
+ NamingPatternType
@@ -3008,51 +2942,57 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapDiskConfigurationsRequest
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ThreeTierRecommendationResult
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapDiskConfigurationsRequest
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ThreeTierRecommendationResult
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
- AppLocation
+ DeploymentType
- DatabaseType
+ ApplicationServerInstanceCount
- DbVMSku
+ ApplicationServerVMSku
- DeploymentType
+ CentralServerInstanceCount
- Environment
+ CentralServerVMSku
- SapProduct
+ DatabaseInstanceCount
+
+
+ DbVMSku
@@ -3060,39 +3000,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapInstallWithoutOsconfigSoftwareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.UpdateSapApplicationInstanceRequestTags
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapInstallWithoutOsconfigSoftwareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.UpdateSapApplicationInstanceRequestTags
-
-
-
-
-
-
-
-
-
-
+
- SoftwareInstallationType
-
-
- BomUrl
-
-
- SapBitsStorageAccountId
-
-
- SoftwareVersion
+ Item
@@ -3100,45 +3022,65 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitor
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.UpdateSapCentralInstanceRequestTags
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitor
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.UpdateSapCentralInstanceRequestTags
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- Name
-
-
- ResourceGroupName
-
-
- ProvisioningState
+ Item
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.UpdateSapDatabaseInstanceRequestTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.UpdateSapDatabaseInstanceRequestTags
+
+
+
+
+
+
+
+
+
+
- GroupingLandscape
+ Item
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.UpdateSapVirtualInstanceProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.UpdateSapVirtualInstanceProperties
+
+
+
+
+
+
+
+
+
+
- GroupingSapApplication
+ ManagedResourcesNetworkAccessType
@@ -3146,21 +3088,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.UpdateSapVirtualInstanceRequestTags
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorListResult
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.UpdateSapVirtualInstanceRequestTags
-
+
- NextLink
+ Item
@@ -3168,39 +3110,55 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorMetricThresholds
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorMetricThresholds
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfiguration
-
+
+
+
+
+
+
+ VMSize
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNames
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNames
+
+
+
-
+
-
+
-
+
- Green
-
-
- Name
+ HostName
- Red
+ OSDiskName
- Yellow
+ VMName
@@ -3208,21 +3166,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNamesDataDiskNames
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNamesDataDiskNames
-
+
- ProvisioningState
+ Item
@@ -3230,27 +3188,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorSidMapping
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.WindowsConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorSidMapping
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.WindowsConfiguration
-
-
-
-
+
- Name
-
-
- TopSid
+ OSType
@@ -3258,9 +3210,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapNetWeaverProviderInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Db2ProviderInstanceProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapNetWeaverProviderInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Db2ProviderInstanceProperties
@@ -3268,31 +3220,25 @@
-
-
-
-
-
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -3308,37 +3254,65 @@
ProviderType
- SapClientId
+ DbName
- SapHostFileEntry
+ DbPassword
- SapHostname
+ DbPasswordUri
- SapInstanceNr
+ DbPort
- SapPassword
+ DbUsername
- SapPasswordUri
+ Hostname
- SapPortNumber
+ SapSid
- SapSid
+ SslCertificateUri
- SapUsername
+ SslPreference
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Error
+
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Error
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
- SslCertificateUri
+ Message
- SslPreference
+ Target
@@ -3346,69 +3320,87 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapSizingRecommendationRequest
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.HanaDbProviderInstanceProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapSizingRecommendationRequest
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.HanaDbProviderInstanceProperties
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
- AppLocation
+ ProviderType
- DatabaseType
+ DbName
- DbMemory
+ DbPassword
- DbScaleMethod
+ DbPasswordUri
- DeploymentType
+ DbUsername
- Environment
+ Hostname
- HighAvailabilityType
+ InstanceNumber
- Sap
+ SapSid
- SapProduct
+ SqlPort
+
+
+ SslCertificateUri
+
+
+ SslHostNameInCertificate
+
+
+ SslPreference
@@ -3416,21 +3408,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapSizingRecommendationResult
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ManagedRgConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapSizingRecommendationResult
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ManagedRgConfiguration
-
+
- DeploymentType
+ Name
@@ -3438,33 +3430,45 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapSupportedSku
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Monitor
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapSupportedSku
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Monitor
-
+
-
+
-
+
+
+
+
+
+
+
- IsAppServerCertified
+ Name
- IsDatabaseCertified
+ ResourceGroupName
- VMSku
+ ManagedResourceGroupConfigurationName
+
+
+ Location
+
+
+ ProvisioningState
@@ -3472,51 +3476,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapSupportedSkusRequest
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MonitorListResult
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapSupportedSkusRequest
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MonitorListResult
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- AppLocation
-
-
- DatabaseType
-
-
- DeploymentType
-
-
- Environment
-
-
- HighAvailabilityType
-
-
- SapProduct
+ NextLink
@@ -3524,69 +3498,63 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstance
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MonitorProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstance
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MonitorProperties
-
+
-
+
-
+
-
+
-
-
-
-
+
-
+
-
+
- Name
+ AppLocation
- ResourceGroupName
+ LogAnalyticsWorkspaceArmId
- Health
+ MonitorSubnet
- Environment
+ MsiArmIdProvisioningState
- SapProduct
-
-
- State
+ RoutingPreference
- Status
+ StorageAccountArmId
- Location
+ ZoneRedundancyPreference
@@ -3594,21 +3562,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceList
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MonitorPropertiesErrors
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceList
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MonitorPropertiesErrors
-
+
+
+
+
+
+
+
- NextLink
+ Code
+
+
+ Message
+
+
+ Target
@@ -3616,51 +3596,69 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MSSqlServerProviderInstanceProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MSSqlServerProviderInstanceProperties
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
- Environment
+ ProviderType
+
+
+ DbPassword
- Health
+ DbPasswordUri
- ProvisioningState
+ DbPort
- SapProduct
+ DbUsername
- State
+ Hostname
- Status
+ SapSid
+
+
+ SslCertificateUri
+
+
+ SslPreference
@@ -3668,79 +3666,57 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ServiceInitiatedSoftwareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsContent
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ServiceInitiatedSoftwareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsContent
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
- SoftwareInstallationType
-
-
- BomUrl
+ Name
- SapBitsStorageAccountId
+ SystemDataCreatedAt
- SapFqdn
+ SystemDataCreatedBy
- SoftwareVersion
+ SystemDataCreatedByType
- SshPrivateKey
+ SystemDataLastModifiedAt
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SharedStorageResourceNames
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SharedStorageResourceNames
-
-
-
-
-
-
-
-
-
-
-
-
-
- SharedStorageAccountName
+ SystemDataLastModifiedBy
- SharedStorageAccountPrivateEndPointName
+ SystemDataLastModifiedByType
@@ -3748,39 +3724,39 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SingleServerConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDefinition
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SingleServerConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDefinition
-
+
-
+
-
+
-
+
- AppResourceGroup
+ ActionType
- DeploymentType
+ IsDataAction
- DatabaseType
+ Name
- SubnetId
+ Origin
@@ -3788,21 +3764,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SingleServerCustomResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDefinitionArrayResponseWithContinuation
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SingleServerCustomResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDefinitionArrayResponseWithContinuation
-
+
- NamingPatternType
+ NextLink
@@ -3810,93 +3786,39 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SingleServerFullResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDefinitionDisplay
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SingleServerFullResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDefinitionDisplay
-
+
-
-
-
-
-
- NamingPatternType
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SingleServerRecommendationResult
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SingleServerRecommendationResult
-
-
-
-
+
-
+
+
+
+
- DeploymentType
+ Description
- VMSku
+ Operation
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SkipFileShareConfiguration
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SkipFileShareConfiguration
-
-
-
-
-
-
-
-
-
-
- ConfigurationType
+ Provider
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SoftwareConfiguration
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SoftwareConfiguration
-
-
-
-
-
-
-
-
-
-
- SoftwareInstallationType
+ Resource
@@ -3904,49 +3826,39 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshKeyPair
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDisplayDefinition
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshKeyPair
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OperationsDisplayDefinition
-
+
-
+
+
+
+
+
+
+
- PrivateKey
+ Description
- PublicKey
+ Operation
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshPublicKey
-
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshPublicKey
-
-
-
-
-
-
-
-
-
-
- KeyData
+ Provider
+
+
+ Resource
@@ -3954,21 +3866,57 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.StopRequest
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.PrometheusHaClusterProviderInstanceProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.StopRequest
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.PrometheusHaClusterProviderInstanceProperties
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- SoftStopTimeoutSecond
+ ProviderType
+
+
+ ClusterName
+
+
+ Hostname
+
+
+ PrometheusUrl
+
+
+ Sid
+
+
+ SslCertificateUri
+
+
+ SslPreference
@@ -3976,21 +3924,45 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Tags
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.PrometheusOSProviderInstanceProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Tags
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.PrometheusOSProviderInstanceProperties
-
+
+
+
+
+
+
+
+
+
+
+
+
+
- Item
+ ProviderType
+
+
+ PrometheusUrl
+
+
+ SapSid
+
+
+ SslCertificateUri
+
+
+ SslPreference
@@ -3998,27 +3970,39 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ThreeTierConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstance
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ThreeTierConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstance
-
+
-
+
+
+
+
+
+
+
- AppResourceGroup
+ Name
- DeploymentType
+ ResourceGroupName
+
+
+ ProvisioningState
+
+
+ IdentityType
@@ -4026,21 +4010,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ThreeTierCustomResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstanceListResult
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ThreeTierCustomResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstanceListResult
-
+
- NamingPatternType
+ NextLink
@@ -4048,21 +4032,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ThreeTierFullResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstanceProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ThreeTierFullResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstanceProperties
-
+
- NamingPatternType
+ ProvisioningState
@@ -4070,57 +4054,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ThreeTierRecommendationResult
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstancePropertiesErrors
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ThreeTierRecommendationResult
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstancePropertiesErrors
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
- DeploymentType
-
-
- ApplicationServerInstanceCount
-
-
- ApplicationServerVMSku
-
-
- CentralServerInstanceCount
-
-
- CentralServerVMSku
+ Code
- DatabaseInstanceCount
+ Message
- DbVMSku
+ Target
@@ -4128,21 +4088,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UpdateMonitorRequestTags
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderSpecificProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UpdateMonitorRequestTags
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderSpecificProperties
-
+
- Item
+ ProviderType
@@ -4150,21 +4110,45 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UpdateSapApplicationInstanceRequestTags
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitor
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UpdateSapApplicationInstanceRequestTags
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitor
-
+
+
+
+
+
+
+
+
+
+
+
+
+
- Item
+ Name
+
+
+ ResourceGroupName
+
+
+ ProvisioningState
+
+
+ GroupingLandscape
+
+
+ GroupingSapApplication
@@ -4172,21 +4156,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UpdateSapCentralInstanceRequestTags
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorListResult
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UpdateSapCentralInstanceRequestTags
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorListResult
-
+
- Item
+ NextLink
@@ -4194,21 +4178,39 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UpdateSapDatabaseInstanceRequestTags
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorMetricThresholds
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UpdateSapDatabaseInstanceRequestTags
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorMetricThresholds
-
+
+
+
+
+
+
+
+
+
+
- Item
+ Green
+
+
+ Name
+
+
+ Red
+
+
+ Yellow
@@ -4216,21 +4218,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UpdateSapVirtualInstanceRequestTags
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UpdateSapVirtualInstanceRequestTags
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorProperties
-
+
- Item
+ ProvisioningState
@@ -4238,21 +4240,27 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorSidMapping
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapLandscapeMonitorSidMapping
-
+
+
+
+
- VMSize
+ Name
+
+
+ TopSid
@@ -4260,33 +4268,87 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapNetWeaverProviderInstanceProperties
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapNetWeaverProviderInstanceProperties
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- HostName
+ ProviderType
- OSDiskName
+ SapClientId
- VMName
+ SapHostFileEntry
+
+
+ SapHostname
+
+
+ SapInstanceNr
+
+
+ SapPassword
+
+
+ SapPasswordUri
+
+
+ SapPortNumber
+
+
+ SapSid
+
+
+ SapUsername
+
+
+ SslCertificateUri
+
+
+ SslPreference
@@ -4294,9 +4356,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNamesDataDiskNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Tags
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNamesDataDiskNames
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.Tags
@@ -4316,21 +4378,21 @@
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.WindowsConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UpdateMonitorRequestTags
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.WindowsConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UpdateMonitorRequestTags
-
+
- OSType
+ Item
diff --git a/src/Workloads/Workloads.Autorest/Az.Workloads.psd1 b/src/Workloads/Workloads.Autorest/Az.Workloads.psd1
index 7e7faf40a9a6..7043a2725a61 100644
--- a/src/Workloads/Workloads.Autorest/Az.Workloads.psd1
+++ b/src/Workloads/Workloads.Autorest/Az.Workloads.psd1
@@ -1,167 +1,24 @@
-#
-# Module manifest for module 'Az.Workloads'
-#
-# Generated by: Microsoft Corporation
-#
-# Generated on: 4/17/2023
-#
-
@{
-
-# Script module or binary module file associated with this manifest.
-RootModule = './Az.Workloads.psm1'
-
-# Version number of this module.
-ModuleVersion = '0.1.0'
-
-# Supported PSEditions
-CompatiblePSEditions = 'Core', 'Desktop'
-
-# ID used to uniquely identify this module
-GUID = 'ee197d70-9add-4652-9b94-eab7bc0e93e1'
-
-# Author of this module
-Author = 'Microsoft Corporation'
-
-# Company or vendor of this module
-CompanyName = 'Microsoft Corporation'
-
-# Copyright statement for this module
-Copyright = 'Microsoft Corporation. All rights reserved.'
-
-# Description of the functionality provided by this module
-Description = 'Microsoft Azure PowerShell: Workloads cmdlets'
-
-# Minimum version of the PowerShell engine required by this module
-PowerShellVersion = '5.1'
-
-# Name of the PowerShell host required by this module
-# PowerShellHostName = ''
-
-# Minimum version of the PowerShell host required by this module
-# PowerShellHostVersion = ''
-
-# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
-DotNetFrameworkVersion = '4.7.2'
-
-# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
-# ClrVersion = ''
-
-# Processor architecture (None, X86, Amd64) required by this module
-# ProcessorArchitecture = ''
-
-# Modules that must be imported into the global environment prior to importing this module
-RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.1'; })
-
-# Assemblies that must be loaded prior to importing this module
-RequiredAssemblies = './bin/Az.Workloads.private.dll'
-
-# Script files (.ps1) that are run in the caller's environment prior to importing this module.
-# ScriptsToProcess = @()
-
-# Type files (.ps1xml) to be loaded when importing this module
-# TypesToProcess = @()
-
-# Format files (.ps1xml) to be loaded when importing this module
-FormatsToProcess = './Az.Workloads.format.ps1xml'
-
-# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
-# NestedModules = @()
-
-# Functions 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 functions to export.
-FunctionsToExport = 'Get-AzWorkloadsMonitor', 'Get-AzWorkloadsProviderInstance',
- 'Get-AzWorkloadsSapApplicationInstance',
- 'Get-AzWorkloadsSapCentralInstance',
- 'Get-AzWorkloadsSapDatabaseInstance',
- 'Get-AzWorkloadsSapLandscapeMonitor',
- 'Get-AzWorkloadsSapVirtualInstance',
- 'Invoke-AzWorkloadsSapDiskConfiguration',
- 'Invoke-AzWorkloadsSapSizingRecommendation',
- 'Invoke-AzWorkloadsSapSupportedSku', 'New-AzWorkloadsMonitor',
- 'New-AzWorkloadsProviderDB2InstanceObject',
- 'New-AzWorkloadsProviderHanaDbInstanceObject',
- 'New-AzWorkloadsProviderInstance',
- 'New-AzWorkloadsProviderPrometheusHaClusterInstanceObject',
- 'New-AzWorkloadsProviderPrometheusOSInstanceObject',
- 'New-AzWorkloadsProviderSapNetWeaverInstanceObject',
- 'New-AzWorkloadsProviderSqlServerInstanceObject',
- 'New-AzWorkloadsSapLandscapeMonitor',
- 'New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject',
- 'New-AzWorkloadsSapLandscapeMonitorSidMappingObject',
- 'New-AzWorkloadsSapVirtualInstance', 'Remove-AzWorkloadsMonitor',
- 'Remove-AzWorkloadsProviderInstance',
- 'Remove-AzWorkloadsSapLandscapeMonitor',
- 'Remove-AzWorkloadsSapVirtualInstance',
- 'Start-AzWorkloadsSapApplicationInstance',
- 'Start-AzWorkloadsSapCentralInstance',
- 'Start-AzWorkloadsSapDatabaseInstance',
- 'Start-AzWorkloadsSapVirtualInstance',
- 'Stop-AzWorkloadsSapApplicationInstance',
- 'Stop-AzWorkloadsSapCentralInstance',
- 'Stop-AzWorkloadsSapDatabaseInstance',
- 'Stop-AzWorkloadsSapVirtualInstance', 'Update-AzWorkloadsMonitor',
- 'Update-AzWorkloadsSapApplicationInstance',
- 'Update-AzWorkloadsSapCentralInstance',
- 'Update-AzWorkloadsSapDatabaseInstance',
- 'Update-AzWorkloadsSapLandscapeMonitor',
- 'Update-AzWorkloadsSapVirtualInstance'
-
-# 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.
-CmdletsToExport = @()
-
-# Variables to export from this module
-# VariablesToExport = @()
-
-# Aliases 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 aliases to export.
-AliasesToExport = '*'
-
-# DSC resources to export from this module
-# DscResourcesToExport = @()
-
-# List of all modules packaged with this module
-# ModuleList = @()
-
-# List of all files packaged with this module
-# FileList = @()
-
-# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
-PrivateData = @{
-
+ GUID = 'ee197d70-9add-4652-9b94-eab7bc0e93e1'
+ RootModule = './Az.Workloads.psm1'
+ ModuleVersion = '0.1.0'
+ CompatiblePSEditions = 'Core', 'Desktop'
+ Author = 'Microsoft Corporation'
+ CompanyName = 'Microsoft Corporation'
+ Copyright = 'Microsoft Corporation. All rights reserved.'
+ Description = 'Microsoft Azure PowerShell: Workloads cmdlets'
+ PowerShellVersion = '5.1'
+ DotNetFrameworkVersion = '4.7.2'
+ RequiredAssemblies = './bin/Az.Workloads.private.dll'
+ FormatsToProcess = './Az.Workloads.format.ps1xml'
+ FunctionsToExport = 'Get-AzWorkloadsMonitor', 'Get-AzWorkloadsProviderInstance', 'Get-AzWorkloadsSapApplicationInstance', 'Get-AzWorkloadsSapCentralInstance', 'Get-AzWorkloadsSapDatabaseInstance', 'Get-AzWorkloadsSapLandscapeMonitor', 'Get-AzWorkloadsSapVirtualInstance', 'Invoke-AzWorkloadsSapDiskConfiguration', 'Invoke-AzWorkloadsSapSizingRecommendation', 'Invoke-AzWorkloadsSapSupportedSku', 'New-AzWorkloadsMonitor', 'New-AzWorkloadsProviderDB2InstanceObject', 'New-AzWorkloadsProviderHanaDbInstanceObject', 'New-AzWorkloadsProviderInstance', 'New-AzWorkloadsProviderPrometheusHaClusterInstanceObject', 'New-AzWorkloadsProviderPrometheusOSInstanceObject', 'New-AzWorkloadsProviderSapNetWeaverInstanceObject', 'New-AzWorkloadsProviderSqlServerInstanceObject', 'New-AzWorkloadsSapLandscapeMonitor', 'New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject', 'New-AzWorkloadsSapLandscapeMonitorSidMappingObject', 'New-AzWorkloadsSapVirtualInstance', 'Remove-AzWorkloadsMonitor', 'Remove-AzWorkloadsProviderInstance', 'Remove-AzWorkloadsSapLandscapeMonitor', 'Remove-AzWorkloadsSapVirtualInstance', 'Start-AzWorkloadsSapApplicationInstance', 'Start-AzWorkloadsSapCentralInstance', 'Start-AzWorkloadsSapDatabaseInstance', 'Start-AzWorkloadsSapVirtualInstance', 'Stop-AzWorkloadsSapApplicationInstance', 'Stop-AzWorkloadsSapCentralInstance', 'Stop-AzWorkloadsSapDatabaseInstance', 'Stop-AzWorkloadsSapVirtualInstance', 'Update-AzWorkloadsMonitor', 'Update-AzWorkloadsSapApplicationInstance', 'Update-AzWorkloadsSapCentralInstance', 'Update-AzWorkloadsSapDatabaseInstance', 'Update-AzWorkloadsSapLandscapeMonitor', 'Update-AzWorkloadsSapVirtualInstance', '*'
+ AliasesToExport = '*'
+ PrivateData = @{
PSData = @{
-
- # Tags applied to this module. These help with module discovery in online galleries.
- Tags = 'Azure','ResourceManager','ARM','PSModule','Workloads'
-
- # A URL to the license for this module.
- LicenseUri = 'https://aka.ms/azps-license'
-
- # A URL to the main website for this project.
- ProjectUri = 'https://github.com/Azure/azure-powershell'
-
- # A URL to an icon representing this module.
- # IconUri = ''
-
- # ReleaseNotes of this module
- # ReleaseNotes = ''
-
- # Prerelease string of this module
- # Prerelease = ''
-
- # Flag to indicate whether the module requires explicit user acceptance for install/update/save
- # RequireLicenseAcceptance = $false
-
- # External dependent modules of this module
- # ExternalModuleDependencies = @()
-
- } # End of PSData hashtable
-
- } # End of PrivateData hashtable
-
-# HelpInfo URI of this module
-# HelpInfoURI = ''
-
-# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
-# DefaultCommandPrefix = ''
-
+ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Workloads'
+ LicenseUri = 'https://aka.ms/azps-license'
+ ProjectUri = 'https://github.com/Azure/azure-powershell'
+ ReleaseNotes = ''
+ }
+ }
}
-
diff --git a/src/Workloads/Workloads.Autorest/README.md b/src/Workloads/Workloads.Autorest/README.md
index 7d2a3c672396..7e3c9a966e64 100644
--- a/src/Workloads/Workloads.Autorest/README.md
+++ b/src/Workloads/Workloads.Autorest/README.md
@@ -30,9 +30,11 @@ For information on how to develop for `Az.Workloads`, see [how-to.md](how-to.md)
> see https://aka.ms/autorest
```yaml
-branch: c7c06e7e311df89b6851aa7e12142c8f0d129cd8
+commit: 202321f386ea5b0c103b46902d43b3d3c50e029c
+tag: package-preview-2023-10
+# tag: package-2023-04
require:
- - $(this-folder)/../readme.azure.noprofile.md
+ - $(this-folder)/../../readme.azure.noprofile.md
- $(repo)/specification/workloads/resource-manager/readme.md
try-require:
@@ -43,6 +45,10 @@ identity-correction-for-post: true
nested-object-to-string: true
inlining-threshold: 100
+# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
+use-extension:
+ "@autorest/powershell": "3.x"
+
directive:
# Monitor
- where:
@@ -352,6 +358,11 @@ directive:
# - PrometheusHaClusterProviderInstanceProperties
# - MsSqlServerProviderInstanceProperties
+- from: swagger-document
+ where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}"].delete.responses
+ transform: >-
+ return { "200": { "description": "OK" }, "202": { "description": "Accepted", "headers": { "Location": { "description": "The URL of the resource used to check the status of the asynchronous operation.", "type": "string" }, "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", "type": "integer", "format": "int32" }, "Azure-AsyncOperation": { "description": "The URI to poll for completion status.", "type": "string" } } }, "204": { "description": "No Content" }, "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "https://github.com/Azure/azure-rest-api-specs/blob/202321f386ea5b0c103b46902d43b3d3c50e029c/specification/common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }
+
# Result shoule be in SingleServerRecommendationResult and ThreeTierRecommendationResult
- from: source-file-csharp
where: $
diff --git a/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-applicationInstances.json b/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-applicationInstances.json
index cb91228df0eb..55ffa48fbaaf 100644
--- a/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-applicationInstances.json
+++ b/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-applicationInstances.json
@@ -1,6 +1,6 @@
{
"resourceType": "sapVirtualInstances/applicationInstances",
- "apiVersion": "2023-04-01",
+ "apiVersion": "2023-10-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.workloads"
},
diff --git a/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-centralInstances.json b/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-centralInstances.json
index 3cafc7ec56bc..9f814e941f03 100644
--- a/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-centralInstances.json
+++ b/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-centralInstances.json
@@ -1,6 +1,6 @@
{
"resourceType": "sapVirtualInstances/centralInstances",
- "apiVersion": "2023-04-01",
+ "apiVersion": "2023-10-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.workloads"
},
diff --git a/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-databaseInstances.json b/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-databaseInstances.json
index c150464eb697..166c32755c83 100644
--- a/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-databaseInstances.json
+++ b/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances-databaseInstances.json
@@ -1,6 +1,6 @@
{
"resourceType": "sapVirtualInstances/databaseInstances",
- "apiVersion": "2023-04-01",
+ "apiVersion": "2023-10-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.workloads"
},
diff --git a/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances.json b/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances.json
index 33df60fc751c..953969637316 100644
--- a/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances.json
+++ b/src/Workloads/Workloads.Autorest/UX/Microsoft.Workloads/sapVirtualInstances.json
@@ -1,6 +1,6 @@
{
"resourceType": "sapVirtualInstances",
- "apiVersion": "2023-04-01",
+ "apiVersion": "2023-10-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.workloads"
},
diff --git a/src/Workloads/Workloads.Autorest/build-module.ps1 b/src/Workloads/Workloads.Autorest/build-module.ps1
index 608c6b6cdfc1..5b9d9ad0080e 100644
--- a/src/Workloads/Workloads.Autorest/build-module.ps1
+++ b/src/Workloads/Workloads.Autorest/build-module.ps1
@@ -143,7 +143,8 @@ if($NoDocs) {
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
}
$null = New-Item -ItemType Directory -Force -Path $docsFolder
- Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid
+ $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true')
+ Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo
}
Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
@@ -162,4 +163,10 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol
Write-Host -ForegroundColor Green 'Creating example stubs...'
Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
+if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
+{
+ Write-Host -ForegroundColor Green 'Creating ux metadata...'
+ . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
+}
+
Write-Host -ForegroundColor Green '-------------Done-------------'
diff --git a/src/Workloads/Workloads.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_SapExpanded.cs b/src/Workloads/Workloads.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_SapExpanded.cs
index d49c9513fe47..49872d30be41 100644
--- a/src/Workloads/Workloads.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_SapExpanded.cs
+++ b/src/Workloads/Workloads.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_SapExpanded.cs
@@ -19,15 +19,15 @@ public partial class InvokeAzWorkloadsSapSizingRecommendation_SapExpanded : glob
{
/// 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.Workloads.Models.Api20230401.ISapSizingRecommendationResult
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSizingRecommendationResult
/// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
- 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)
{
// onOk - response for 200 / application/json
- // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSizingRecommendationResult
+ // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSizingRecommendationResult
WriteObject(response.Result);
returnNow = global::System.Threading.Tasks.Task.FromResult(true);
}
diff --git a/src/Workloads/Workloads.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_SapViaIdentityExpanded.cs b/src/Workloads/Workloads.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_SapViaIdentityExpanded.cs
index 7d4900f93444..5fbe961b5442 100644
--- a/src/Workloads/Workloads.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_SapViaIdentityExpanded.cs
+++ b/src/Workloads/Workloads.Autorest/custom/InvokeAzWorkloadsSapSizingRecommendation_SapViaIdentityExpanded.cs
@@ -19,15 +19,15 @@ public partial class InvokeAzWorkloadsSapSizingRecommendation_SapViaIdentityExpa
{
/// 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.Workloads.Models.Api20230401.ISapSizingRecommendationResult
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSizingRecommendationResult
/// from the remote call
///
/// A that will be complete when handling of the method is completed.
///
- 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)
{
// onOk - response for 200 / application/json
- // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSizingRecommendationResult
+ // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSizingRecommendationResult
WriteObject(response.Result);
returnNow = global::System.Threading.Tasks.Task.FromResult(true);
}
diff --git a/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithDiscovery.ps1 b/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithDiscovery.ps1
index bc2ab1497c14..196830d62711 100644
--- a/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithDiscovery.ps1
+++ b/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithDiscovery.ps1
@@ -25,7 +25,7 @@ Creates a Virtual Instance for SAP solutions (VIS) resource
{{ Add code here }}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -37,7 +37,7 @@ CONFIGURATION : Defines if the SAP system is being created us
https://learn.microsoft.com/powershell/module/az.workloads/new-azworkloadssapvirtualinstance
#>
function New-AzWorkloadsSapVirtualInstance {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance])]
[CmdletBinding(DefaultParameterSetName='CreateWithDiscovery', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -182,7 +182,7 @@ function New-AzWorkloadsSapVirtualInstance {
process {
try {
$configuration = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType]::Discovery
- $discoveryConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiscoveryConfiguration]::new();
+ $discoveryConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiscoveryConfiguration]::new();
$discoveryConfiguration.ConfigurationType = $configuration
$discoveryConfiguration.CentralServerVMId = $CentralServerVmId
$null = $PSBoundParameters.Remove('CentralServerVmId')
diff --git a/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonString.cs b/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonString.cs
index dc2bf9232ac9..7c9e5499aa5d 100644
--- a/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonString.cs
+++ b/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonString.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Cmdlets
///
[global::Microsoft.Azure.PowerShell.Cmdlets.Workloads.InternalExport]
[global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWorkloadsSapVirtualInstance_CreateWithJsonString", SupportsShouldProcess = true)]
- [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance))]
+ [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance))]
[global::Microsoft.Azure.PowerShell.Cmdlets.Workloads.Description(@"Creates a Virtual Instance for SAP solutions (VIS) resource")]
[global::Microsoft.Azure.PowerShell.Cmdlets.Workloads.Generated]
public partial class NewAzWorkloadsSapVirtualInstance_CreateWithJsonString : global::System.Management.Automation.PSCmdlet,
@@ -187,12 +187,12 @@ public partial class NewAzWorkloadsSapVirtualInstance_CreateWithJsonString : glo
/// 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.Workloads.Models.Api20230401.ISapVirtualInstance
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance
/// 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)
@@ -462,12 +462,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.Workloads.Models.Api20230401.ISapVirtualInstance
+ /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance
/// 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 )
{
@@ -479,7 +479,7 @@ protected override void StopProcessing()
return ;
}
// onOk - response for 200 / application/json
- // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance
+ // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance
WriteObject((await response));
}
}
diff --git a/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath.ps1 b/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath.ps1
index 798a6c67f30c..247b42ae1911 100644
--- a/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath.ps1
+++ b/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath.ps1
@@ -25,7 +25,7 @@ Creates a Virtual Instance for SAP solutions (VIS) resource
{{ Add code here }}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -37,7 +37,7 @@ CONFIGURATION : Defines if the SAP system is being created us
https://learn.microsoft.com/powershell/module/az.workloads/new-azworkloadssapvirtualinstance
#>
function New-AzWorkloadsSapVirtualInstance_CreateWithJsonTemplatePath {
- [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance])]
+ [OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance])]
[CmdletBinding(DefaultParameterSetName='CreateWithDiscovery', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/WorkloadsClient.cs b/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/WorkloadsClient.cs
index cf38d30a3042..0ef681dbeb7a 100644
--- a/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/WorkloadsClient.cs
+++ b/src/Workloads/Workloads.Autorest/custom/New-AzWorkloadsSapVirtualInstance/WorkloadsClient.cs
@@ -29,9 +29,9 @@ public partial class WorkloadsClient
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task SapVirtualInstancesCreateViaJsonString(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task SapVirtualInstancesCreateViaJsonString(string subscriptionId, string resourceGroupName, string sapVirtualInstanceName, string jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-04-01";
+ var apiVersion = @"2023-10-01-preview";
// Constant Parameters
using( NoSynchronizationContext )
{
diff --git a/src/Workloads/Workloads.Autorest/examples/New-AzWorkloadsSapVirtualInstance.md b/src/Workloads/Workloads.Autorest/examples/New-AzWorkloadsSapVirtualInstance.md
index b8935c2c33d7..f66d20d7ffd0 100644
--- a/src/Workloads/Workloads.Autorest/examples/New-AzWorkloadsSapVirtualInstance.md
+++ b/src/Workloads/Workloads.Autorest/examples/New-AzWorkloadsSapVirtualInstance.md
@@ -35,8 +35,7 @@ Name ResourceGroupName Health Environment ProvisioningState SapProduct State
SK1 PowerShell-CLI-TestRG NonProd Succeeded S4HANA SoftwareInstallationPending eastus
```
-In this example, you Deploy the infrastructure for a three tier distributed Highly Available (HA) SAP system. A sample json payload to use in this command is linked here: https://go.microsoft.com/fwlink/?linkid=2230402
-
+In this example, you Deploy the infrastructure for a three tier distributed Highly Available (HA) SAP system.
### Example 4: Install SAP software on the infrastructure deployed for the three-tier distributed Highly Available (HA) SAP system using Virtual Instances for SAP solutions
```powershell
@@ -49,8 +48,7 @@ Name ResourceGroupName Health Environment ProvisioningState SapProduct State
SK1 PowerShell-CLI-TestRG NonProd Succeeded S4HANA RegistrationComplete eastus
```
-In this example, you Install the SAP software on the deployed infrastructure for a three tier distributed Highly Availabile SAP system with Transport directory and customized resource naming. A sample json payload to use in this command is linked here: https://go.microsoft.com/fwlink/?linkid=2230340
-
+In this example, you Install the SAP software on the deployed infrastructure for a three tier distributed Highly Availabile SAP system with Transport directory and customized resource naming.
### Example 5: Register an existing SAP system as a VIS
```powershell
diff --git a/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsMonitor.ps1 b/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsMonitor.ps1
index d199b900cd2b..10173e950f4d 100644
--- a/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsMonitor.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsMonitor.ps1
@@ -171,6 +171,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsProviderInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsProviderInstance.ps1
index 70b2c84c6169..8fe9a2f84ce2 100644
--- a/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsProviderInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsProviderInstance.ps1
@@ -174,6 +174,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapApplicationInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapApplicationInstance.ps1
index d3ab44d17088..7d647789ee57 100644
--- a/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapApplicationInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapApplicationInstance.ps1
@@ -29,7 +29,7 @@ Get-AzWorkloadsSapApplicationInstance -InputObject /subscriptions/49d64d54-e966-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/get-azworkloadssapapplicationinstance
#>
function Get-AzWorkloadsSapApplicationInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -173,6 +173,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapCentralInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapCentralInstance.ps1
index 3057762d2eaa..2f143fd87f85 100644
--- a/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapCentralInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapCentralInstance.ps1
@@ -27,7 +27,7 @@ Get-AzWorkloadsSapCentralInstance -InputObject /subscriptions/49d64d54-e966-4c46
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapCentralServerInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/get-azworkloadssapcentralinstance
#>
function Get-AzWorkloadsSapCentralInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapCentralServerInstance])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -171,6 +171,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapDatabaseInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapDatabaseInstance.ps1
index 0565c783e447..5fbf60d8a435 100644
--- a/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapDatabaseInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapDatabaseInstance.ps1
@@ -27,7 +27,7 @@ Get-AzWorkloadsSapDatabaseInstance -InputObject /subscriptions/49d64d54-e966-4c4
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapDatabaseInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapDatabaseInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/get-azworkloadssapdatabaseinstance
#>
function Get-AzWorkloadsSapDatabaseInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapDatabaseInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapDatabaseInstance])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -171,6 +171,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapLandscapeMonitor.ps1 b/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapLandscapeMonitor.ps1
index b0dbc07f65d5..b823809e9874 100644
--- a/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapLandscapeMonitor.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapLandscapeMonitor.ps1
@@ -161,6 +161,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapVirtualInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapVirtualInstance.ps1
index e37acab53adb..5a4f7e5c6449 100644
--- a/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapVirtualInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Get-AzWorkloadsSapVirtualInstance.ps1
@@ -29,7 +29,7 @@ Get-AzWorkloadsSapVirtualInstance -InputObject /subscriptions/49d64d54-e966-4c46
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/get-azworkloadssapvirtualinstance
#>
function Get-AzWorkloadsSapVirtualInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance])]
[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -169,6 +169,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Invoke-AzWorkloadsSapDiskConfiguration.ps1 b/src/Workloads/Workloads.Autorest/exports/Invoke-AzWorkloadsSapDiskConfiguration.ps1
index fd906b256b00..c5a4112ad5f3 100644
--- a/src/Workloads/Workloads.Autorest/exports/Invoke-AzWorkloadsSapDiskConfiguration.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Invoke-AzWorkloadsSapDiskConfiguration.ps1
@@ -25,7 +25,7 @@ Invoke-AzWorkloadsSapDiskConfiguration -Location eastus -AppLocation eastus -Dat
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapDiskConfigurationsResultVolumeConfigurations
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapDiskConfigurationsResultVolumeConfigurations
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -46,7 +46,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/invoke-azworkloadssapdiskconfiguration
#>
function Invoke-AzWorkloadsSapDiskConfiguration {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapDiskConfigurationsResultVolumeConfigurations])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapDiskConfigurationsResultVolumeConfigurations])]
[CmdletBinding(DefaultParameterSetName='SapExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='SapExpanded', Mandatory)]
@@ -194,6 +194,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Invoke-AzWorkloadsSapSizingRecommendation.ps1 b/src/Workloads/Workloads.Autorest/exports/Invoke-AzWorkloadsSapSizingRecommendation.ps1
index 43859b76e501..2fd4a148c2ba 100644
--- a/src/Workloads/Workloads.Autorest/exports/Invoke-AzWorkloadsSapSizingRecommendation.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Invoke-AzWorkloadsSapSizingRecommendation.ps1
@@ -213,6 +213,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Invoke-AzWorkloadsSapSupportedSku.ps1 b/src/Workloads/Workloads.Autorest/exports/Invoke-AzWorkloadsSapSupportedSku.ps1
index 9d2986f26566..81fb0fdc44fa 100644
--- a/src/Workloads/Workloads.Autorest/exports/Invoke-AzWorkloadsSapSupportedSku.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Invoke-AzWorkloadsSapSupportedSku.ps1
@@ -25,7 +25,7 @@ Invoke-AzWorkloadsSapSupportedSku -Location eastus -AppLocation eastus -Database
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSku
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSupportedSku
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -46,7 +46,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/invoke-azworkloadssapsupportedsku
#>
function Invoke-AzWorkloadsSapSupportedSku {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSku])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSupportedSku])]
[CmdletBinding(DefaultParameterSetName='SapExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='SapExpanded', Mandatory)]
@@ -195,6 +195,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsMonitor.ps1 b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsMonitor.ps1
index 5422581d86be..73bdf26e63f3 100644
--- a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsMonitor.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsMonitor.ps1
@@ -107,7 +107,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1]))]
[System.Collections.Hashtable]
# User assigned identities dictionary
${UserAssignedIdentity},
@@ -213,6 +213,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderDB2InstanceObject.ps1 b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderDB2InstanceObject.ps1
index b8267557d2af..525f45df003d 100644
--- a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderDB2InstanceObject.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderDB2InstanceObject.ps1
@@ -117,6 +117,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderHanaDbInstanceObject.ps1 b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderHanaDbInstanceObject.ps1
index 84e83b9b0f81..409f5be52dc0 100644
--- a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderHanaDbInstanceObject.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderHanaDbInstanceObject.ps1
@@ -129,6 +129,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderInstance.ps1
index 345043e7f596..e730b45356a5 100644
--- a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderInstance.ps1
@@ -79,7 +79,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1]))]
[System.Collections.Hashtable]
# User assigned identities dictionary
${IdentityUserAssignedIdentity},
@@ -185,6 +185,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderPrometheusHaClusterInstanceObject.ps1 b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderPrometheusHaClusterInstanceObject.ps1
index 9e3e7b7227d4..6d34a10c32ae 100644
--- a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderPrometheusHaClusterInstanceObject.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderPrometheusHaClusterInstanceObject.ps1
@@ -99,6 +99,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderPrometheusOSInstanceObject.ps1 b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderPrometheusOSInstanceObject.ps1
index d36fb559fc56..f700c186f306 100644
--- a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderPrometheusOSInstanceObject.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderPrometheusOSInstanceObject.ps1
@@ -87,6 +87,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderSapNetWeaverInstanceObject.ps1 b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderSapNetWeaverInstanceObject.ps1
index a85327edfc0a..22ca7dd5f2ec 100644
--- a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderSapNetWeaverInstanceObject.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderSapNetWeaverInstanceObject.ps1
@@ -129,6 +129,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderSqlServerInstanceObject.ps1 b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderSqlServerInstanceObject.ps1
index 1cd160e0872a..2ecf3d25a822 100644
--- a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderSqlServerInstanceObject.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsProviderSqlServerInstanceObject.ps1
@@ -111,6 +111,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapLandscapeMonitor.ps1 b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapLandscapeMonitor.ps1
index 867320b0c74e..c3ffabfb66ee 100644
--- a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapLandscapeMonitor.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapLandscapeMonitor.ps1
@@ -175,6 +175,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject.ps1 b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject.ps1
index 9980c9cc6397..cc279a871a92 100644
--- a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapLandscapeMonitorMetricThresholdsObject.ps1
@@ -86,6 +86,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapLandscapeMonitorSidMappingObject.ps1 b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapLandscapeMonitorSidMappingObject.ps1
index 5ad693b59db3..4a245275df67 100644
--- a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapLandscapeMonitorSidMappingObject.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapLandscapeMonitorSidMappingObject.ps1
@@ -74,6 +74,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapVirtualInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapVirtualInstance.ps1
index cb437525a91d..9f2a6eff71dc 100644
--- a/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapVirtualInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/New-AzWorkloadsSapVirtualInstance.ps1
@@ -31,12 +31,12 @@ New-AzWorkloadsSapVirtualInstance -ResourceGroupName 'PowerShell-CLI-TestRG' -Na
New-AzWorkloadsSapVirtualInstance -ResourceGroupName 'TestRG' -Name L46 -Location eastus -Environment 'NonProd' -SapProduct 'S4HANA' -CentralServerVmId '/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourcegroups/powershell-cli-testrg/providers/microsoft.compute/virtualmachines/l46ascsvm' -Tag @{k1 = "v1"; k2 = "v2"} -ManagedResourceGroupName "L46-rg" -ManagedRgStorageAccountName 'acssstoragel46' -IdentityType 'UserAssigned' -UserAssignedIdentity @{'/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourcegroups/SAP-E2ETest-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/E2E-RBAC-MSI'= @{}}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance
.Link
https://learn.microsoft.com/powershell/module/az.workloads/new-azworkloadssapvirtualinstance
#>
function New-AzWorkloadsSapVirtualInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance])]
[CmdletBinding(DefaultParameterSetName='CreateWithDiscovery', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -223,6 +223,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/Workloads/Workloads.Autorest/exports/ProxyCmdletDefinitions.ps1
index 0f01e6eea562..078e7d01eeb8 100644
--- a/src/Workloads/Workloads.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -171,6 +171,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -375,6 +379,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -434,7 +442,7 @@ Get-AzWorkloadsSapApplicationInstance -InputObject /subscriptions/49d64d54-e966-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -455,7 +463,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/get-azworkloadssapapplicationinstance
#>
function Get-AzWorkloadsSapApplicationInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -578,6 +586,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -635,7 +647,7 @@ Get-AzWorkloadsSapCentralInstance -InputObject /subscriptions/49d64d54-e966-4c46
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapCentralServerInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -656,7 +668,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/get-azworkloadssapcentralinstance
#>
function Get-AzWorkloadsSapCentralInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapCentralServerInstance])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -779,6 +791,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -836,7 +852,7 @@ Get-AzWorkloadsSapDatabaseInstance -InputObject /subscriptions/49d64d54-e966-4c4
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapDatabaseInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapDatabaseInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -857,7 +873,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/get-azworkloadssapdatabaseinstance
#>
function Get-AzWorkloadsSapDatabaseInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapDatabaseInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapDatabaseInstance])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -980,6 +996,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -1171,6 +1191,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -1230,7 +1254,7 @@ Get-AzWorkloadsSapVirtualInstance -InputObject /subscriptions/49d64d54-e966-4c46
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1251,7 +1275,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/get-azworkloadssapvirtualinstance
#>
function Get-AzWorkloadsSapVirtualInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance])]
[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -1370,6 +1394,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -1425,7 +1453,7 @@ Invoke-AzWorkloadsSapDiskConfiguration -Location eastus -AppLocation eastus -Dat
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapDiskConfigurationsResultVolumeConfigurations
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapDiskConfigurationsResultVolumeConfigurations
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1446,7 +1474,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/invoke-azworkloadssapdiskconfiguration
#>
function Invoke-AzWorkloadsSapDiskConfiguration {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapDiskConfigurationsResultVolumeConfigurations])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapDiskConfigurationsResultVolumeConfigurations])]
[CmdletBinding(DefaultParameterSetName='SapExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='SapExpanded', Mandatory)]
@@ -1594,6 +1622,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -1837,6 +1869,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -1892,7 +1928,7 @@ Invoke-AzWorkloadsSapSupportedSku -Location eastus -AppLocation eastus -Database
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSku
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSupportedSku
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1913,7 +1949,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/invoke-azworkloadssapsupportedsku
#>
function Invoke-AzWorkloadsSapSupportedSku {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSku])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapSupportedSku])]
[CmdletBinding(DefaultParameterSetName='SapExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='SapExpanded', Mandatory)]
@@ -2062,6 +2098,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -2199,7 +2239,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1]))]
[System.Collections.Hashtable]
# User assigned identities dictionary
${UserAssignedIdentity},
@@ -2305,6 +2345,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -2414,7 +2458,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1]))]
[System.Collections.Hashtable]
# User assigned identities dictionary
${IdentityUserAssignedIdentity},
@@ -2520,6 +2564,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -2725,6 +2773,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -2935,6 +2987,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -3151,6 +3207,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -3348,6 +3408,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -3405,7 +3469,7 @@ Remove-AzWorkloadsSapVirtualInstance -InputObject /subscriptions/49d64d54-e966-4
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IOperationStatusResult
+System.Boolean
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -3426,7 +3490,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/remove-azworkloadssapvirtualinstance
#>
function Remove-AzWorkloadsSapVirtualInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IOperationStatusResult])]
+[OutputType([System.Boolean])]
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Delete', Mandatory)]
@@ -3558,6 +3622,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -3612,6 +3680,8 @@ Start-AzWorkloadsSapApplicationInstance -Name app0 -ResourceGroupName db0-vis-rg
.Example
Start-AzWorkloadsSapApplicationInstance -InputObject /subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/db0-vis-rg/providers/Microsoft.Workloads/sapVirtualInstances/DB0/applicationInstances/app0
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
@@ -3621,6 +3691,9 @@ 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.
+BODY : Start SAP instance(s) request body.
+ [StartVM ]: The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+
INPUTOBJECT : Identity Parameter
[ApplicationInstanceName ]: The name of SAP Application Server instance resource.
[CentralInstanceName ]: Central Services Instance resource name string modeled as parameter for auto generation to work correctly.
@@ -3637,15 +3710,17 @@ https://learn.microsoft.com/powershell/module/az.workloads/start-azworkloadssapa
#>
function Start-AzWorkloadsSapApplicationInstance {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IOperationStatusResult])]
-[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+[CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of SAP Application Server instance resource.
${Name},
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of the resource group.
@@ -3653,12 +3728,14 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of the Virtual Instances for SAP solutions resource
${SapVirtualInstanceName},
[Parameter(ParameterSetName='Start')]
+ [Parameter(ParameterSetName='StartExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -3666,12 +3743,28 @@ param(
${SubscriptionId},
[Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest]
+ # Start SAP instance(s) request body.
+ # To construct, see NOTES section for BODY properties and create a hash table.
+ ${Body},
+
+ [Parameter(ParameterSetName='StartExpanded')]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+ ${StartVM},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -3760,13 +3853,19 @@ begin {
$mapping = @{
Start = 'Az.Workloads.private\Start-AzWorkloadsSapApplicationInstance_Start';
+ StartExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapApplicationInstance_StartExpanded';
StartViaIdentity = 'Az.Workloads.private\Start-AzWorkloadsSapApplicationInstance_StartViaIdentity';
+ StartViaIdentityExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapApplicationInstance_StartViaIdentityExpanded';
}
- if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Start', 'StartExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -3821,6 +3920,8 @@ Start-AzWorkloadsSapCentralInstance -Name cs0 -ResourceGroupName db0-vis-rg -Sap
.Example
Start-AzWorkloadsSapCentralInstance -InputObject /subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/db0-vis-rg/providers/Microsoft.Workloads/sapVirtualInstances/DB0/centralInstances/cs0
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
@@ -3830,6 +3931,9 @@ 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.
+BODY : Start SAP instance(s) request body.
+ [StartVM ]: The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+
INPUTOBJECT : Identity Parameter
[ApplicationInstanceName ]: The name of SAP Application Server instance resource.
[CentralInstanceName ]: Central Services Instance resource name string modeled as parameter for auto generation to work correctly.
@@ -3846,15 +3950,17 @@ https://learn.microsoft.com/powershell/module/az.workloads/start-azworkloadssapc
#>
function Start-AzWorkloadsSapCentralInstance {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IOperationStatusResult])]
-[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+[CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# Central Services Instance resource name string modeled as parameter for auto generation to work correctly.
${Name},
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of the resource group.
@@ -3862,12 +3968,14 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of the Virtual Instances for SAP solutions resource
${SapVirtualInstanceName},
[Parameter(ParameterSetName='Start')]
+ [Parameter(ParameterSetName='StartExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -3875,12 +3983,28 @@ param(
${SubscriptionId},
[Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest]
+ # Start SAP instance(s) request body.
+ # To construct, see NOTES section for BODY properties and create a hash table.
+ ${Body},
+
+ [Parameter(ParameterSetName='StartExpanded')]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+ ${StartVM},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -3969,13 +4093,19 @@ begin {
$mapping = @{
Start = 'Az.Workloads.private\Start-AzWorkloadsSapCentralInstance_Start';
+ StartExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapCentralInstance_StartExpanded';
StartViaIdentity = 'Az.Workloads.private\Start-AzWorkloadsSapCentralInstance_StartViaIdentity';
+ StartViaIdentityExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapCentralInstance_StartViaIdentityExpanded';
}
- if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Start', 'StartExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -4030,6 +4160,8 @@ Start-AzWorkloadsSapDatabaseInstance -Name db0 -ResourceGroupName db0-vis-rg -Sa
.Example
Start-AzWorkloadsSapDatabaseInstance -InputObject /subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/db0-vis-rg/providers/Microsoft.Workloads/sapVirtualInstances/DB0/databaseInstances/db0
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
@@ -4039,6 +4171,9 @@ 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.
+BODY : Start SAP instance(s) request body.
+ [StartVM ]: The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+
INPUTOBJECT : Identity Parameter
[ApplicationInstanceName ]: The name of SAP Application Server instance resource.
[CentralInstanceName ]: Central Services Instance resource name string modeled as parameter for auto generation to work correctly.
@@ -4055,15 +4190,17 @@ https://learn.microsoft.com/powershell/module/az.workloads/start-azworkloadssapd
#>
function Start-AzWorkloadsSapDatabaseInstance {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IOperationStatusResult])]
-[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+[CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# Database resource name string modeled as parameter for auto generation to work correctly.
${Name},
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of the resource group.
@@ -4071,12 +4208,14 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of the Virtual Instances for SAP solutions resource
${SapVirtualInstanceName},
[Parameter(ParameterSetName='Start')]
+ [Parameter(ParameterSetName='StartExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -4084,12 +4223,28 @@ param(
${SubscriptionId},
[Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest]
+ # Start SAP instance(s) request body.
+ # To construct, see NOTES section for BODY properties and create a hash table.
+ ${Body},
+
+ [Parameter(ParameterSetName='StartExpanded')]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+ ${StartVM},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -4178,13 +4333,19 @@ begin {
$mapping = @{
Start = 'Az.Workloads.private\Start-AzWorkloadsSapDatabaseInstance_Start';
+ StartExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapDatabaseInstance_StartExpanded';
StartViaIdentity = 'Az.Workloads.private\Start-AzWorkloadsSapDatabaseInstance_StartViaIdentity';
+ StartViaIdentityExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapDatabaseInstance_StartViaIdentityExpanded';
}
- if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Start', 'StartExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -4239,6 +4400,8 @@ Start-AzWorkloadsSapVirtualInstance -Name DB0 -ResourceGroupName db0-vis-rg
.Example
Start-AzWorkloadsSapVirtualInstance -InputObject /subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/db0-vis-rg/providers/Microsoft.Workloads/sapVirtualInstances/DB0
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
@@ -4248,6 +4411,9 @@ 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.
+BODY : Start SAP instance(s) request body.
+ [StartVM ]: The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+
INPUTOBJECT : Identity Parameter
[ApplicationInstanceName ]: The name of SAP Application Server instance resource.
[CentralInstanceName ]: Central Services Instance resource name string modeled as parameter for auto generation to work correctly.
@@ -4264,9 +4430,10 @@ https://learn.microsoft.com/powershell/module/az.workloads/start-azworkloadssapv
#>
function Start-AzWorkloadsSapVirtualInstance {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IOperationStatusResult])]
-[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+[CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Alias('SapVirtualInstanceName')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
@@ -4274,6 +4441,7 @@ param(
${Name},
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of the resource group.
@@ -4281,6 +4449,7 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='Start')]
+ [Parameter(ParameterSetName='StartExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -4288,12 +4457,28 @@ param(
${SubscriptionId},
[Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest]
+ # Start SAP instance(s) request body.
+ # To construct, see NOTES section for BODY properties and create a hash table.
+ ${Body},
+
+ [Parameter(ParameterSetName='StartExpanded')]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+ ${StartVM},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -4382,13 +4567,19 @@ begin {
$mapping = @{
Start = 'Az.Workloads.private\Start-AzWorkloadsSapVirtualInstance_Start';
+ StartExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapVirtualInstance_StartExpanded';
StartViaIdentity = 'Az.Workloads.private\Start-AzWorkloadsSapVirtualInstance_StartViaIdentity';
+ StartViaIdentityExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapVirtualInstance_StartViaIdentityExpanded';
}
- if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Start', 'StartExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -4503,6 +4694,12 @@ param(
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to Stop and deallocate the virtual machines along with the SAP instances.
+ ${DeallocateVM},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
[System.Int64]
@@ -4606,6 +4803,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -4720,6 +4921,12 @@ param(
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to Stop and deallocate the virtual machines along with the SAP instances.
+ ${DeallocateVM},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
[System.Int64]
@@ -4823,6 +5030,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -4937,6 +5148,12 @@ param(
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to Stop and deallocate the virtual machines along with the SAP instances.
+ ${DeallocateVM},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
[System.Int64]
@@ -5040,6 +5257,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -5149,6 +5370,12 @@ param(
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to Stop and deallocate the virtual machines along with the SAP instances.
+ ${DeallocateVM},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
[System.Int64]
@@ -5252,6 +5479,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -5377,7 +5608,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1]))]
[System.Collections.Hashtable]
# User assigned identities dictionary
${UserAssignedIdentity},
@@ -5465,6 +5696,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -5511,9 +5746,11 @@ end {
<#
.Synopsis
-Puts the SAP Application Server Instance resource.
+Updates the SAP Application server instance resource.
+This can be used to update tags on the resource.
.Description
-Puts the SAP Application Server Instance resource.
+Updates the SAP Application server instance resource.
+This can be used to update tags on the resource.
.Example
Update-AzWorkloadsSapApplicationInstance -Name app0 -ResourceGroupName db0-vis-rg -SapVirtualInstanceName DB0 -Tag @{ Test = "PS"; k2 = "v2"}
.Example
@@ -5522,7 +5759,7 @@ Update-AzWorkloadsSapApplicationInstance -InputObject /subscriptions/49d64d54-e
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -5543,7 +5780,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/update-azworkloadssapapplicationinstance
#>
function Update-AzWorkloadsSapApplicationInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -5581,7 +5818,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapApplicationInstanceRequestTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IUpdateSapApplicationInstanceRequestTags]))]
[System.Collections.Hashtable]
# Gets or sets the Resource tags.
${Tag},
@@ -5595,12 +5832,6 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -5621,12 +5852,6 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Uri]
@@ -5681,6 +5906,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -5744,7 +5973,7 @@ Update-AzWorkloadsSapCentralInstance -InputObject /subscriptions/49d64d54-e966-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapCentralServerInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -5765,7 +5994,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/update-azworkloadssapcentralinstance
#>
function Update-AzWorkloadsSapCentralInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapCentralServerInstance])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -5803,7 +6032,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapCentralInstanceRequestTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IUpdateSapCentralInstanceRequestTags]))]
[System.Collections.Hashtable]
# Gets or sets the Resource tags.
${Tag},
@@ -5817,12 +6046,6 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -5843,12 +6066,6 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Uri]
@@ -5903,6 +6120,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -5949,9 +6170,11 @@ end {
<#
.Synopsis
-Updates the Database resource.
+Updates the Database instance resource.
+This can be used to update tags on the resource.
.Description
-Updates the Database resource.
+Updates the Database instance resource.
+This can be used to update tags on the resource.
.Example
Update-AzWorkloadsSapDatabaseInstance -Name db0 -ResourceGroupName db0-vis-rg -SapVirtualInstanceName DB0 -Tag @{ Test = "PS"; k2 = "v2"}
.Example
@@ -5960,7 +6183,7 @@ Update-AzWorkloadsSapDatabaseInstance -InputObject /subscriptions/49d64d54-e966
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapDatabaseInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapDatabaseInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -5981,7 +6204,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/update-azworkloadssapdatabaseinstance
#>
function Update-AzWorkloadsSapDatabaseInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapDatabaseInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapDatabaseInstance])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -6019,7 +6242,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapDatabaseInstanceRequestTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IUpdateSapDatabaseInstanceRequestTags]))]
[System.Collections.Hashtable]
# Gets or sets the Resource tags.
${Tag},
@@ -6033,12 +6256,6 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -6059,12 +6276,6 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Uri]
@@ -6119,6 +6330,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -6346,6 +6561,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -6403,7 +6622,7 @@ Update-AzWorkloadsSapVirtualInstance -InputObject /subscriptions/49d64d54-e966-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -6424,7 +6643,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/update-azworkloadssapvirtualinstance
#>
function Update-AzWorkloadsSapVirtualInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -6462,9 +6681,21 @@ param(
# Type of manage identity
${IdentityType},
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedResourcesNetworkAccessType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedResourcesNetworkAccessType]
+ # Specifies the network access configuration for the resources that will be deployed in the Managed Resource Group.
+ # The options to choose from are Public and Private.
+ # If 'Private' is chosen, the Storage Account service tag should be enabled on the subnets in which the SAP VMs exist.
+ # This is required for establishing connectivity between VM extensions and the managed resource group storage account.
+ # This setting is currently applicable only to Storage Account.
+ # Learn more here https://go.microsoft.com/fwlink/linkid=2247228
+ ${ManagedResourcesNetworkAccessType},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapVirtualInstanceRequestTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IUpdateSapVirtualInstanceRequestTags]))]
[System.Collections.Hashtable]
# Gets or sets the Resource tags.
${Tag},
@@ -6485,6 +6716,12 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -6505,6 +6742,12 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Uri]
@@ -6559,6 +6802,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -6706,6 +6953,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -6865,6 +7116,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -6994,6 +7249,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -7111,6 +7370,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -7270,6 +7533,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -7411,6 +7678,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -7527,6 +7798,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -7631,6 +7906,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
@@ -7692,12 +7971,12 @@ New-AzWorkloadsSapVirtualInstance -ResourceGroupName 'PowerShell-CLI-TestRG' -Na
New-AzWorkloadsSapVirtualInstance -ResourceGroupName 'TestRG' -Name L46 -Location eastus -Environment 'NonProd' -SapProduct 'S4HANA' -CentralServerVmId '/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourcegroups/powershell-cli-testrg/providers/microsoft.compute/virtualmachines/l46ascsvm' -Tag @{k1 = "v1"; k2 = "v2"} -ManagedResourceGroupName "L46-rg" -ManagedRgStorageAccountName 'acssstoragel46' -IdentityType 'UserAssigned' -UserAssignedIdentity @{'/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourcegroups/SAP-E2ETest-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/E2E-RBAC-MSI'= @{}}
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance
.Link
https://learn.microsoft.com/powershell/module/az.workloads/new-azworkloadssapvirtualinstance
#>
function New-AzWorkloadsSapVirtualInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance])]
[CmdletBinding(DefaultParameterSetName='CreateWithDiscovery', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -7884,6 +8163,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsMonitor.ps1 b/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsMonitor.ps1
index 66afa329d0b7..c4da096dd657 100644
--- a/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsMonitor.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsMonitor.ps1
@@ -180,6 +180,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsProviderInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsProviderInstance.ps1
index ad4eec73a669..785475e61fed 100644
--- a/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsProviderInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsProviderInstance.ps1
@@ -186,6 +186,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsSapLandscapeMonitor.ps1 b/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsSapLandscapeMonitor.ps1
index 22b1dac93671..59e03657b54b 100644
--- a/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsSapLandscapeMonitor.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsSapLandscapeMonitor.ps1
@@ -167,6 +167,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsSapVirtualInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsSapVirtualInstance.ps1
index 59df6b74db90..d022709675bd 100644
--- a/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsSapVirtualInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Remove-AzWorkloadsSapVirtualInstance.ps1
@@ -27,7 +27,7 @@ Remove-AzWorkloadsSapVirtualInstance -InputObject /subscriptions/49d64d54-e966-4
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IOperationStatusResult
+System.Boolean
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/remove-azworkloadssapvirtualinstance
#>
function Remove-AzWorkloadsSapVirtualInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IOperationStatusResult])]
+[OutputType([System.Boolean])]
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Delete', Mandatory)]
@@ -180,6 +180,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapApplicationInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapApplicationInstance.ps1
index 407e184b3c27..011f1d6e405e 100644
--- a/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapApplicationInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapApplicationInstance.ps1
@@ -24,6 +24,8 @@ Start-AzWorkloadsSapApplicationInstance -Name app0 -ResourceGroupName db0-vis-rg
.Example
Start-AzWorkloadsSapApplicationInstance -InputObject /subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/db0-vis-rg/providers/Microsoft.Workloads/sapVirtualInstances/DB0/applicationInstances/app0
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
@@ -33,6 +35,9 @@ 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.
+BODY : Start SAP instance(s) request body.
+ [StartVM ]: The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+
INPUTOBJECT : Identity Parameter
[ApplicationInstanceName ]: The name of SAP Application Server instance resource.
[CentralInstanceName ]: Central Services Instance resource name string modeled as parameter for auto generation to work correctly.
@@ -49,15 +54,17 @@ https://learn.microsoft.com/powershell/module/az.workloads/start-azworkloadssapa
#>
function Start-AzWorkloadsSapApplicationInstance {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IOperationStatusResult])]
-[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+[CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of SAP Application Server instance resource.
${Name},
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of the resource group.
@@ -65,12 +72,14 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of the Virtual Instances for SAP solutions resource
${SapVirtualInstanceName},
[Parameter(ParameterSetName='Start')]
+ [Parameter(ParameterSetName='StartExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -78,12 +87,28 @@ param(
${SubscriptionId},
[Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest]
+ # Start SAP instance(s) request body.
+ # To construct, see NOTES section for BODY properties and create a hash table.
+ ${Body},
+
+ [Parameter(ParameterSetName='StartExpanded')]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+ ${StartVM},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -172,13 +197,19 @@ begin {
$mapping = @{
Start = 'Az.Workloads.private\Start-AzWorkloadsSapApplicationInstance_Start';
+ StartExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapApplicationInstance_StartExpanded';
StartViaIdentity = 'Az.Workloads.private\Start-AzWorkloadsSapApplicationInstance_StartViaIdentity';
+ StartViaIdentityExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapApplicationInstance_StartViaIdentityExpanded';
}
- if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Start', 'StartExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapCentralInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapCentralInstance.ps1
index 3ca3bbe7f0c5..646b1b68d257 100644
--- a/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapCentralInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapCentralInstance.ps1
@@ -24,6 +24,8 @@ Start-AzWorkloadsSapCentralInstance -Name cs0 -ResourceGroupName db0-vis-rg -Sap
.Example
Start-AzWorkloadsSapCentralInstance -InputObject /subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/db0-vis-rg/providers/Microsoft.Workloads/sapVirtualInstances/DB0/centralInstances/cs0
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
@@ -33,6 +35,9 @@ 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.
+BODY : Start SAP instance(s) request body.
+ [StartVM ]: The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+
INPUTOBJECT : Identity Parameter
[ApplicationInstanceName ]: The name of SAP Application Server instance resource.
[CentralInstanceName ]: Central Services Instance resource name string modeled as parameter for auto generation to work correctly.
@@ -49,15 +54,17 @@ https://learn.microsoft.com/powershell/module/az.workloads/start-azworkloadssapc
#>
function Start-AzWorkloadsSapCentralInstance {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IOperationStatusResult])]
-[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+[CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# Central Services Instance resource name string modeled as parameter for auto generation to work correctly.
${Name},
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of the resource group.
@@ -65,12 +72,14 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of the Virtual Instances for SAP solutions resource
${SapVirtualInstanceName},
[Parameter(ParameterSetName='Start')]
+ [Parameter(ParameterSetName='StartExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -78,12 +87,28 @@ param(
${SubscriptionId},
[Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest]
+ # Start SAP instance(s) request body.
+ # To construct, see NOTES section for BODY properties and create a hash table.
+ ${Body},
+
+ [Parameter(ParameterSetName='StartExpanded')]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+ ${StartVM},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -172,13 +197,19 @@ begin {
$mapping = @{
Start = 'Az.Workloads.private\Start-AzWorkloadsSapCentralInstance_Start';
+ StartExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapCentralInstance_StartExpanded';
StartViaIdentity = 'Az.Workloads.private\Start-AzWorkloadsSapCentralInstance_StartViaIdentity';
+ StartViaIdentityExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapCentralInstance_StartViaIdentityExpanded';
}
- if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Start', 'StartExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapDatabaseInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapDatabaseInstance.ps1
index 13aaf97f75f8..b10eda7ed785 100644
--- a/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapDatabaseInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapDatabaseInstance.ps1
@@ -24,6 +24,8 @@ Start-AzWorkloadsSapDatabaseInstance -Name db0 -ResourceGroupName db0-vis-rg -Sa
.Example
Start-AzWorkloadsSapDatabaseInstance -InputObject /subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/db0-vis-rg/providers/Microsoft.Workloads/sapVirtualInstances/DB0/databaseInstances/db0
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
@@ -33,6 +35,9 @@ 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.
+BODY : Start SAP instance(s) request body.
+ [StartVM ]: The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+
INPUTOBJECT : Identity Parameter
[ApplicationInstanceName ]: The name of SAP Application Server instance resource.
[CentralInstanceName ]: Central Services Instance resource name string modeled as parameter for auto generation to work correctly.
@@ -49,15 +54,17 @@ https://learn.microsoft.com/powershell/module/az.workloads/start-azworkloadssapd
#>
function Start-AzWorkloadsSapDatabaseInstance {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IOperationStatusResult])]
-[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+[CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# Database resource name string modeled as parameter for auto generation to work correctly.
${Name},
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of the resource group.
@@ -65,12 +72,14 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of the Virtual Instances for SAP solutions resource
${SapVirtualInstanceName},
[Parameter(ParameterSetName='Start')]
+ [Parameter(ParameterSetName='StartExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -78,12 +87,28 @@ param(
${SubscriptionId},
[Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest]
+ # Start SAP instance(s) request body.
+ # To construct, see NOTES section for BODY properties and create a hash table.
+ ${Body},
+
+ [Parameter(ParameterSetName='StartExpanded')]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+ ${StartVM},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -172,13 +197,19 @@ begin {
$mapping = @{
Start = 'Az.Workloads.private\Start-AzWorkloadsSapDatabaseInstance_Start';
+ StartExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapDatabaseInstance_StartExpanded';
StartViaIdentity = 'Az.Workloads.private\Start-AzWorkloadsSapDatabaseInstance_StartViaIdentity';
+ StartViaIdentityExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapDatabaseInstance_StartViaIdentityExpanded';
}
- if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Start', 'StartExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapVirtualInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapVirtualInstance.ps1
index 31493f63739e..7d5933b9160a 100644
--- a/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapVirtualInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Start-AzWorkloadsSapVirtualInstance.ps1
@@ -24,6 +24,8 @@ Start-AzWorkloadsSapVirtualInstance -Name DB0 -ResourceGroupName db0-vis-rg
.Example
Start-AzWorkloadsSapVirtualInstance -InputObject /subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/db0-vis-rg/providers/Microsoft.Workloads/sapVirtualInstances/DB0
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
@@ -33,6 +35,9 @@ 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.
+BODY : Start SAP instance(s) request body.
+ [StartVM ]: The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+
INPUTOBJECT : Identity Parameter
[ApplicationInstanceName ]: The name of SAP Application Server instance resource.
[CentralInstanceName ]: Central Services Instance resource name string modeled as parameter for auto generation to work correctly.
@@ -49,9 +54,10 @@ https://learn.microsoft.com/powershell/module/az.workloads/start-azworkloadssapv
#>
function Start-AzWorkloadsSapVirtualInstance {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IOperationStatusResult])]
-[CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+[CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Alias('SapVirtualInstanceName')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
@@ -59,6 +65,7 @@ param(
${Name},
[Parameter(ParameterSetName='Start', Mandatory)]
+ [Parameter(ParameterSetName='StartExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[System.String]
# The name of the resource group.
@@ -66,6 +73,7 @@ param(
${ResourceGroupName},
[Parameter(ParameterSetName='Start')]
+ [Parameter(ParameterSetName='StartExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -73,12 +81,28 @@ param(
${SubscriptionId},
[Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity]
# Identity Parameter
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStartRequest]
+ # Start SAP instance(s) request body.
+ # To construct, see NOTES section for BODY properties and create a hash table.
+ ${Body},
+
+ [Parameter(ParameterSetName='StartExpanded')]
+ [Parameter(ParameterSetName='StartViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to start the virtual machines before starting the SAP instances.
+ ${StartVM},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -167,13 +191,19 @@ begin {
$mapping = @{
Start = 'Az.Workloads.private\Start-AzWorkloadsSapVirtualInstance_Start';
+ StartExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapVirtualInstance_StartExpanded';
StartViaIdentity = 'Az.Workloads.private\Start-AzWorkloadsSapVirtualInstance_StartViaIdentity';
+ StartViaIdentityExpanded = 'Az.Workloads.private\Start-AzWorkloadsSapVirtualInstance_StartViaIdentityExpanded';
}
- if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('Start', 'StartExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapApplicationInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapApplicationInstance.ps1
index 4d828788b577..b18105ffe7ab 100644
--- a/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapApplicationInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapApplicationInstance.ps1
@@ -84,6 +84,12 @@ param(
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to Stop and deallocate the virtual machines along with the SAP instances.
+ ${DeallocateVM},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
[System.Int64]
@@ -187,6 +193,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapCentralInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapCentralInstance.ps1
index a6b3c597ee7c..ff6b58095a88 100644
--- a/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapCentralInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapCentralInstance.ps1
@@ -84,6 +84,12 @@ param(
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to Stop and deallocate the virtual machines along with the SAP instances.
+ ${DeallocateVM},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
[System.Int64]
@@ -187,6 +193,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapDatabaseInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapDatabaseInstance.ps1
index 5e316f576ea4..9ae0906c390a 100644
--- a/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapDatabaseInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapDatabaseInstance.ps1
@@ -84,6 +84,12 @@ param(
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to Stop and deallocate the virtual machines along with the SAP instances.
+ ${DeallocateVM},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
[System.Int64]
@@ -187,6 +193,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapVirtualInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapVirtualInstance.ps1
index b9732f1dc612..39f32032dcbe 100644
--- a/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapVirtualInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Stop-AzWorkloadsSapVirtualInstance.ps1
@@ -79,6 +79,12 @@ param(
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # The boolean value indicates whether to Stop and deallocate the virtual machines along with the SAP instances.
+ ${DeallocateVM},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
[System.Int64]
@@ -182,6 +188,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsMonitor.ps1 b/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsMonitor.ps1
index 6338a52e5e01..287c3adf6930 100644
--- a/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsMonitor.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsMonitor.ps1
@@ -95,7 +95,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1]))]
[System.Collections.Hashtable]
# User assigned identities dictionary
${UserAssignedIdentity},
@@ -183,6 +183,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapApplicationInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapApplicationInstance.ps1
index 787cb37aeae9..75dd8b27c9a0 100644
--- a/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapApplicationInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapApplicationInstance.ps1
@@ -16,9 +16,11 @@
<#
.Synopsis
-Puts the SAP Application Server Instance resource.
+Updates the SAP Application server instance resource.
+This can be used to update tags on the resource.
.Description
-Puts the SAP Application Server Instance resource.
+Updates the SAP Application server instance resource.
+This can be used to update tags on the resource.
.Example
Update-AzWorkloadsSapApplicationInstance -Name app0 -ResourceGroupName db0-vis-rg -SapVirtualInstanceName DB0 -Tag @{ Test = "PS"; k2 = "v2"}
.Example
@@ -27,7 +29,7 @@ Update-AzWorkloadsSapApplicationInstance -InputObject /subscriptions/49d64d54-e
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -48,7 +50,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/update-azworkloadssapapplicationinstance
#>
function Update-AzWorkloadsSapApplicationInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -86,7 +88,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapApplicationInstanceRequestTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IUpdateSapApplicationInstanceRequestTags]))]
[System.Collections.Hashtable]
# Gets or sets the Resource tags.
${Tag},
@@ -100,12 +102,6 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -126,12 +122,6 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Uri]
@@ -186,6 +176,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapCentralInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapCentralInstance.ps1
index 74fc6ab9c489..01db7ebd7c39 100644
--- a/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapCentralInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapCentralInstance.ps1
@@ -33,7 +33,7 @@ Update-AzWorkloadsSapCentralInstance -InputObject /subscriptions/49d64d54-e966-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapCentralServerInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -54,7 +54,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/update-azworkloadssapcentralinstance
#>
function Update-AzWorkloadsSapCentralInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapCentralServerInstance])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -92,7 +92,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapCentralInstanceRequestTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IUpdateSapCentralInstanceRequestTags]))]
[System.Collections.Hashtable]
# Gets or sets the Resource tags.
${Tag},
@@ -106,12 +106,6 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -132,12 +126,6 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Uri]
@@ -192,6 +180,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapDatabaseInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapDatabaseInstance.ps1
index 7bf907f4702b..de7091fd296b 100644
--- a/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapDatabaseInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapDatabaseInstance.ps1
@@ -16,9 +16,11 @@
<#
.Synopsis
-Updates the Database resource.
+Updates the Database instance resource.
+This can be used to update tags on the resource.
.Description
-Updates the Database resource.
+Updates the Database instance resource.
+This can be used to update tags on the resource.
.Example
Update-AzWorkloadsSapDatabaseInstance -Name db0 -ResourceGroupName db0-vis-rg -SapVirtualInstanceName DB0 -Tag @{ Test = "PS"; k2 = "v2"}
.Example
@@ -27,7 +29,7 @@ Update-AzWorkloadsSapDatabaseInstance -InputObject /subscriptions/49d64d54-e966
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapDatabaseInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapDatabaseInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -48,7 +50,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/update-azworkloadssapdatabaseinstance
#>
function Update-AzWorkloadsSapDatabaseInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapDatabaseInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapDatabaseInstance])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -86,7 +88,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapDatabaseInstanceRequestTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IUpdateSapDatabaseInstanceRequestTags]))]
[System.Collections.Hashtable]
# Gets or sets the Resource tags.
${Tag},
@@ -100,12 +102,6 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -126,12 +122,6 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Uri]
@@ -186,6 +176,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapLandscapeMonitor.ps1 b/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapLandscapeMonitor.ps1
index 96639cfaad0d..e1d9076bf9ba 100644
--- a/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapLandscapeMonitor.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapLandscapeMonitor.ps1
@@ -197,6 +197,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapVirtualInstance.ps1 b/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapVirtualInstance.ps1
index e577d956ee0a..59cd4bed3c2b 100644
--- a/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapVirtualInstance.ps1
+++ b/src/Workloads/Workloads.Autorest/exports/Update-AzWorkloadsSapVirtualInstance.ps1
@@ -27,7 +27,7 @@ Update-AzWorkloadsSapVirtualInstance -InputObject /subscriptions/49d64d54-e966-
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.IWorkloadsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance
+Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -48,7 +48,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.workloads/update-azworkloadssapvirtualinstance
#>
function Update-AzWorkloadsSapVirtualInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstance])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstance])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -87,8 +87,20 @@ param(
${IdentityType},
[Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedResourcesNetworkAccessType])]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapVirtualInstanceRequestTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedResourcesNetworkAccessType]
+ # Specifies the network access configuration for the resources that will be deployed in the Managed Resource Group.
+ # The options to choose from are Public and Private.
+ # If 'Private' is chosen, the Storage Account service tag should be enabled on the subnets in which the SAP VMs exist.
+ # This is required for establishing connectivity between VM extensions and the managed resource group storage account.
+ # This setting is currently applicable only to Storage Account.
+ # Learn more here https://go.microsoft.com/fwlink/linkid=2247228
+ ${ManagedResourcesNetworkAccessType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IUpdateSapVirtualInstanceRequestTags]))]
[System.Collections.Hashtable]
# Gets or sets the Resource tags.
${Tag},
@@ -109,6 +121,12 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -129,6 +147,12 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Category('Runtime')]
[System.Uri]
@@ -183,6 +207,10 @@ begin {
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.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)
diff --git a/src/Workloads/Workloads.Autorest/generate-help.ps1 b/src/Workloads/Workloads.Autorest/generate-help.ps1
index 7e726f0da989..5ae5ab7954aa 100644
--- a/src/Workloads/Workloads.Autorest/generate-help.ps1
+++ b/src/Workloads/Workloads.Autorest/generate-help.ps1
@@ -66,8 +66,8 @@ foreach($directory in $directories)
$docsPath = Join-Path $docsFolder $directory.Name
$null = New-Item -ItemType Directory -Force -Path $docsPath -ErrorAction SilentlyContinue
$examplesPath = Join-Path $examplesFolder $directory.Name
-
- Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath
+ $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true')
+ Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath -AddComplexInterfaceInfo:$addComplexInterfaceInfo
Write-Host -ForegroundColor Green "Created documentation in '$docsPath'"
}
diff --git a/src/Workloads/Workloads.Autorest/generate-portal-ux.ps1 b/src/Workloads/Workloads.Autorest/generate-portal-ux.ps1
new file mode 100644
index 000000000000..792aeaff6282
--- /dev/null
+++ b/src/Workloads/Workloads.Autorest/generate-portal-ux.ps1
@@ -0,0 +1,375 @@
+# ----------------------------------------------------------------------------------
+# 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.
+#
+# This Script will create a folder dedicated to Azure-specific content and includes metadata files essential for enhancing the user experience (UX) within the Azure portal.
+# These files are utilized by the Azure portal to effectively present the usage of cmdlets related to specific resources on portal pages.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated)
+$ErrorActionPreference = 'Stop'
+
+$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+if(-not $Isolated) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ return
+}
+
+$moduleName = 'Az.Workloads'
+$rootModuleName = ''
+if ($rootModuleName -eq "")
+{
+ $rootModuleName = $moduleName
+}
+$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot "./$moduleName.psd1")
+$modulePath = $modulePsd1.FullName
+
+# Load DLL to use build-time cmdlets
+Import-Module -Name $modulePath
+Import-Module -Name (Join-Path $PSScriptRoot "./bin/$moduleName.private.dll")
+$instance = [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Module]::Instance
+# Module info is shared per profile
+$moduleInfo = Get-Module -Name $moduleName
+$parameterSetsInfo = Get-Module -Name "$moduleName.private"
+
+$buildinFunctions = @("Export-CmdletSurface", "Export-ExampleStub", "Export-FormatPs1xml", "Export-HelpMarkdown", "Export-ModelSurface", "Export-ProxyCmdlet", "Export-Psd1", "Export-TestStub", "Get-CommonParameter", "Get-ModuleGuid", "Get-ScriptCmdlet")
+
+function Test-FunctionSupported()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [string]
+ $FunctionName
+ )
+
+ If ($buildinfunctions.Contains($FunctionName)) {
+ return $false
+ }
+
+ $cmdletName, $parameterSetName = $FunctionName.Split("_")
+ If ($parameterSetName.Contains("List") -or $parameterSetName.Contains("ViaIdentity")) {
+ return $false
+ }
+ If ($cmdletName.StartsWith("New") -or $cmdletName.StartsWith("Set") -or $cmdletName.StartsWith("Update")) {
+ return $false
+ }
+
+ $parameterSetInfo = $parameterSetsInfo.ExportedCmdlets[$FunctionName]
+ foreach ($parameterInfo in $parameterSetInfo.Parameters.Values)
+ {
+ $category = (Get-ParameterAttribute -ParameterInfo $parameterInfo -AttributeName "CategoryAttribute").Categories
+ $invalideCategory = @('Query', 'Body')
+ if ($invalideCategory -contains $category)
+ {
+ return $false
+ }
+ }
+
+ $customFiles = Get-ChildItem -Path custom -Filter "$cmdletName.*"
+ if ($customFiles.Length -ne 0)
+ {
+ return $false
+ }
+
+ return $true
+}
+
+function Get-MappedCmdletFromFunctionName()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [string]
+ $FunctionName
+ )
+
+ $cmdletName, $parameterSetName = $FunctionName.Split("_")
+
+ return $cmdletName
+}
+
+function Get-ParameterAttribute()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [System.Management.Automation.ParameterMetadata]
+ $ParameterInfo,
+ [Parameter()]
+ [String]
+ $AttributeName
+ )
+ return $ParameterInfo.Attributes | Where-Object { $_.TypeId.Name -eq $AttributeName }
+}
+
+function Get-CmdletAttribute()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [System.Management.Automation.CommandInfo]
+ $CmdletInfo,
+ [Parameter()]
+ [String]
+ $AttributeName
+ )
+
+ return $CmdletInfo.ImplementingType.GetTypeInfo().GetCustomAttributes([System.object], $true) | Where-Object { $_.TypeId.Name -eq $AttributeName }
+}
+
+function Get-CmdletDescription()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [String]
+ $CmdletName
+ )
+ $helpInfo = Get-Help $CmdletName -Full
+
+ $description = $helpInfo.Description.Text
+ if ($null -eq $description)
+ {
+ return ""
+ }
+ return $description
+}
+
+# Test whether the parameter is from swagger http path
+function Test-ParameterFromSwagger()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [System.Management.Automation.ParameterMetadata]
+ $ParameterInfo
+ )
+ $category = (Get-ParameterAttribute -ParameterInfo $ParameterInfo -AttributeName "CategoryAttribute").Categories
+ $doNotExport = Get-ParameterAttribute -ParameterInfo $ParameterInfo -AttributeName "DoNotExportAttribute"
+ if ($null -ne $doNotExport)
+ {
+ return $false
+ }
+
+ $valideCategory = @('Path')
+ if ($valideCategory -contains $category)
+ {
+ return $true
+ }
+ return $false
+}
+
+function New-ExampleForParameterSet()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [System.Management.Automation.CommandInfo]
+ $ParameterSetInfo
+ )
+ $parameters = $ParameterSetInfo.Parameters.Values | Where-Object { Test-ParameterFromSwagger $_ }
+ $result = @()
+ foreach ($parameter in $parameters)
+ {
+ $category = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "CategoryAttribute").Categories
+ $sourceName = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "InfoAttribute").SerializedName
+ $name = $parameter.Name
+ $result += [ordered]@{
+ name = "-$Name"
+ value = "[$category.$sourceName]"
+ }
+ }
+
+ return $result
+}
+
+function New-ParameterArrayInParameterSet()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [System.Management.Automation.CommandInfo]
+ $ParameterSetInfo
+ )
+ $parameters = $ParameterSetInfo.Parameters.Values | Where-Object { Test-ParameterFromSwagger $_ }
+ $result = @()
+ foreach ($parameter in $parameters)
+ {
+ $isMandatory = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "ParameterAttribute").Mandatory
+ $parameterName = $parameter.Name
+ $parameterType = $parameter.ParameterType.ToString().Split('.')[1]
+ if ($parameter.SwitchParameter)
+ {
+ $parameterSignature = "-$parameterName"
+ }
+ else
+ {
+ $parameterSignature = "-$parameterName <$parameterType>"
+ }
+ if ($parameterName -eq "SubscriptionId")
+ {
+ $isMandatory = $false
+ }
+ if (-not $isMandatory)
+ {
+ $parameterSignature = "[$parameterSignature]"
+ }
+ $result += $parameterSignature
+ }
+
+ return $result
+}
+
+function New-MetadataForParameterSet()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [System.Management.Automation.CommandInfo]
+ $ParameterSetInfo
+ )
+ $httpAttribute = Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "HttpPathAttribute"
+ $httpPath = $httpAttribute.Path
+ $apiVersion = $httpAttribute.ApiVersion
+ $provider = [System.Text.RegularExpressions.Regex]::New("/providers/([\w+\.]+)/").Match($httpPath).Groups[1].Value
+ $resourcePath = "/" + $httpPath.Split("$provider/")[1]
+ $resourceType = [System.Text.RegularExpressions.Regex]::New("/([\w]+)/\{\w+\}").Matches($resourcePath) | ForEach-Object {$_.groups[1].Value} | Join-String -Separator "/"
+ $cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name
+ $description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description
+ [object[]]$example = New-ExampleForParameterSet $ParameterSetInfo
+ [string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo
+
+ return @{
+ Path = $httpPath
+ Provider = $provider
+ ResourceType = $resourceType
+ ApiVersion = $apiVersion
+ CmdletName = $cmdletName
+ Description = $description
+ Example = $example
+ Signature = @{
+ parameters = $signature
+ }
+ }
+}
+
+function Merge-WithExistCmdletMetadata()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [System.Collections.Specialized.OrderedDictionary]
+ $ExistedCmdletInfo,
+ [Parameter()]
+ [Hashtable]
+ $ParameterSetMetadata
+ )
+ $ExistedCmdletInfo.help.parameterSets += $ParameterSetMetadata.Signature
+ $ExistedCmdletInfo.examples += [ordered]@{
+ description = $ParameterSetMetadata.Description
+ parameters = $ParameterSetMetadata.Example
+ }
+
+ return $ExistedCmdletInfo
+}
+
+function New-MetadataForCmdlet()
+{
+ [CmdletBinding()]
+ Param (
+ [Parameter()]
+ [Hashtable]
+ $ParameterSetMetadata
+ )
+ $cmdletName = $ParameterSetMetadata.CmdletName
+ $description = Get-CmdletDescription $cmdletName
+ $result = [ordered]@{
+ name = $cmdletName
+ description = $description
+ path = $ParameterSetMetadata.Path
+ help = [ordered]@{
+ learnMore = [ordered]@{
+ url = "https://learn.microsoft.com/powershell/module/$rootModuleName/$cmdletName".ToLower()
+ }
+ parameterSets = @()
+ }
+ examples = @()
+ }
+ $result = Merge-WithExistCmdletMetadata -ExistedCmdletInfo $result -ParameterSetMetadata $ParameterSetMetadata
+ return $result
+}
+
+$parameterSets = $parameterSetsInfo.ExportedCmdlets.Keys | Where-Object { Test-functionSupported($_) }
+$resourceTypes = @{}
+foreach ($parameterSetName in $parameterSets)
+{
+ $cmdletInfo = $parameterSetsInfo.ExportedCommands[$parameterSetName]
+ $parameterSetMetadata = New-MetadataForParameterSet -ParameterSetInfo $cmdletInfo
+ $cmdletName = $parameterSetMetadata.CmdletName
+ if (-not ($moduleInfo.ExportedCommands.ContainsKey($cmdletName)))
+ {
+ continue
+ }
+ if ($resourceTypes.ContainsKey($parameterSetMetadata.ResourceType))
+ {
+ $ExistedCmdletInfo = $resourceTypes[$parameterSetMetadata.ResourceType].commands | Where-Object { $_.name -eq $cmdletName }
+ if ($ExistedCmdletInfo)
+ {
+ $ExistedCmdletInfo = Merge-WithExistCmdletMetadata -ExistedCmdletInfo $ExistedCmdletInfo -ParameterSetMetadata $parameterSetMetadata
+ }
+ else
+ {
+ $cmdletInfo = New-MetadataForCmdlet -ParameterSetMetadata $parameterSetMetadata
+ $resourceTypes[$parameterSetMetadata.ResourceType].commands += $cmdletInfo
+ }
+ }
+ else
+ {
+ $cmdletInfo = New-MetadataForCmdlet -ParameterSetMetadata $parameterSetMetadata
+ $resourceTypes[$parameterSetMetadata.ResourceType] = [ordered]@{
+ resourceType = $parameterSetMetadata.ResourceType
+ apiVersion = $parameterSetMetadata.ApiVersion
+ learnMore = @{
+ url = "https://learn.microsoft.com/powershell/module/$rootModuleName".ToLower()
+ }
+ commands = @($cmdletInfo)
+ provider = $parameterSetMetadata.Provider
+ }
+ }
+}
+
+$UXFolder = 'UX'
+if (Test-Path $UXFolder)
+{
+ Remove-Item -Path $UXFolder -Recurse
+}
+$null = New-Item -ItemType Directory -Path $UXFolder
+
+foreach ($resourceType in $resourceTypes.Keys)
+{
+ $resourceTypeFileName = $resourceType -replace "/", "-"
+ if ($resourceTypeFileName -eq "")
+ {
+ continue
+ }
+ $resourceTypeInfo = $resourceTypes[$resourceType]
+ $provider = $resourceTypeInfo.provider
+ $providerFolder = "$UXFolder/$provider"
+ if (-not (Test-Path $providerFolder))
+ {
+ $null = New-Item -ItemType Directory -Path $providerFolder
+ }
+ $resourceTypeInfo.Remove("provider")
+ $resourceTypeInfo | ConvertTo-Json -Depth 10 | Out-File "$providerFolder/$resourceTypeFileName.json"
+}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentity.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20221001Preview/UserAssignedServiceIdentity.PowerShell.cs
similarity index 73%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentity.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20221001Preview/UserAssignedServiceIdentity.PowerShell.cs
index 864954de237e..acf307d84cab 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentity.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20221001Preview/UserAssignedServiceIdentity.PowerShell.cs
@@ -3,14 +3,11 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
- ///
- /// A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit
- /// the ACSS how-to-guide.
- ///
+ /// Managed service identity (user assigned identities)
[System.ComponentModel.TypeConverter(typeof(UserAssignedServiceIdentityTypeConverter))]
public partial class UserAssignedServiceIdentity
{
@@ -66,29 +63,29 @@ public partial class UserAssignedServiceIdentity
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new UserAssignedServiceIdentity(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new UserAssignedServiceIdentity(content);
}
@@ -98,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IU
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
@@ -118,7 +115,7 @@ 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.
@@ -133,17 +130,17 @@ internal UserAssignedServiceIdentity(global::System.Collections.IDictionary cont
// actually deserialize
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType.CreateFrom);
}
if (content.Contains("UserAssignedIdentity"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentityInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentityInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom);
}
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.
@@ -158,17 +155,16 @@ internal UserAssignedServiceIdentity(global::System.Management.Automation.PSObje
// actually deserialize
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentityInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentityInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType.CreateFrom);
}
if (content.Contains("UserAssignedIdentity"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentityInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentityInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom);
}
AfterDeserializePSObject(content);
}
}
- /// A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit
- /// the ACSS how-to-guide.
+ /// Managed service identity (user assigned identities)
[System.ComponentModel.TypeConverter(typeof(UserAssignedServiceIdentityTypeConverter))]
public partial interface IUserAssignedServiceIdentity
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentity.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20221001Preview/UserAssignedServiceIdentity.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentity.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20221001Preview/UserAssignedServiceIdentity.TypeConverter.cs
index c6d68cae7f18..6213955bfdbe 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentity.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20221001Preview/UserAssignedServiceIdentity.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentity ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentity).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentity.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20221001Preview/UserAssignedServiceIdentity.cs
similarity index 85%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentity.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20221001Preview/UserAssignedServiceIdentity.cs
index 477bf5bacfdb..c4f21717fc40 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentity.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20221001Preview/UserAssignedServiceIdentity.cs
@@ -3,17 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
- ///
- /// A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit
- /// the ACSS how-to-guide.
- ///
+ /// Managed service identity (user assigned identities)
public partial class UserAssignedServiceIdentity :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentity,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentityInternal
{
/// Backing field for property.
@@ -36,8 +33,7 @@ public UserAssignedServiceIdentity()
}
}
- /// A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit
- /// the ACSS how-to-guide.
+ /// Managed service identity (user assigned identities)
public partial interface IUserAssignedServiceIdentity :
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable
{
@@ -59,8 +55,7 @@ public partial interface IUserAssignedServiceIdentity :
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities UserAssignedIdentity { get; set; }
}
- /// A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit
- /// the ACSS how-to-guide.
+ /// Managed service identity (user assigned identities)
internal partial interface IUserAssignedServiceIdentityInternal
{
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentity.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20221001Preview/UserAssignedServiceIdentity.json.cs
similarity index 93%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentity.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20221001Preview/UserAssignedServiceIdentity.json.cs
index 4c4b228d4f25..8c4c167f814a 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentity.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20221001Preview/UserAssignedServiceIdentity.json.cs
@@ -3,14 +3,11 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
- ///
- /// A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit
- /// the ACSS how-to-guide.
- ///
+ /// Managed service identity (user assigned identities)
public partial class UserAssignedServiceIdentity
{
@@ -57,13 +54,13 @@ public partial class UserAssignedServiceIdentity
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentity.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentity.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20221001Preview.IUserAssignedServiceIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new UserAssignedServiceIdentity(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerConfiguration.PowerShell.cs
deleted file mode 100644
index 6cd062f75709..000000000000
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerConfiguration.PowerShell.cs
+++ /dev/null
@@ -1,270 +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.Workloads.Models.Api20230401
-{
- using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
-
- /// Gets or sets the application server configuration.
- [System.ComponentModel.TypeConverter(typeof(ApplicationServerConfigurationTypeConverter))]
- public partial class ApplicationServerConfiguration
- {
-
- ///
- /// 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 a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal ApplicationServerConfiguration(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("VirtualMachineConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration) content.GetValueForProperty("VirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("SubnetId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).SubnetId, global::System.Convert.ToString);
- }
- if (content.Contains("InstanceCount"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).InstanceCount = (long) content.GetValueForProperty("InstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).InstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("VirtualMachineConfigurationImageReference"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference) content.GetValueForProperty("VirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationOSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile) content.GetValueForProperty("VirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationVMSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("VirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationVMSize, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferencePublisher"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferencePublisher = (string) content.GetValueForProperty("ImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferencePublisher, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceOffer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferenceOffer = (string) content.GetValueForProperty("ImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferenceOffer, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceSku"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferenceSku = (string) content.GetValueForProperty("ImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferenceSku, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferenceVersion, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileOsconfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSProfileOsconfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("OSProfileOsconfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSProfileOsconfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("OSProfileAdminUsername"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSProfileAdminUsername = (string) content.GetValueForProperty("OSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSProfileAdminUsername, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileAdminPassword"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSProfileAdminPassword = (string) content.GetValueForProperty("OSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSProfileAdminPassword, global::System.Convert.ToString);
- }
- if (content.Contains("OSConfigurationOstype"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal ApplicationServerConfiguration(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("VirtualMachineConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration) content.GetValueForProperty("VirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("SubnetId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).SubnetId, global::System.Convert.ToString);
- }
- if (content.Contains("InstanceCount"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).InstanceCount = (long) content.GetValueForProperty("InstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).InstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("VirtualMachineConfigurationImageReference"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference) content.GetValueForProperty("VirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationOSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile) content.GetValueForProperty("VirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationVMSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("VirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationVMSize, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferencePublisher"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferencePublisher = (string) content.GetValueForProperty("ImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferencePublisher, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceOffer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferenceOffer = (string) content.GetValueForProperty("ImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferenceOffer, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceSku"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferenceSku = (string) content.GetValueForProperty("ImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferenceSku, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).ImageReferenceVersion, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileOsconfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSProfileOsconfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("OSProfileOsconfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSProfileOsconfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("OSProfileAdminUsername"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSProfileAdminUsername = (string) content.GetValueForProperty("OSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSProfileAdminUsername, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileAdminPassword"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSProfileAdminPassword = (string) content.GetValueForProperty("OSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSProfileAdminPassword, global::System.Convert.ToString);
- }
- if (content.Contains("OSConfigurationOstype"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
- }
- 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.Workloads.Models.Api20230401.IApplicationServerConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new ApplicationServerConfiguration(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.Workloads.Models.Api20230401.IApplicationServerConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new ApplicationServerConfiguration(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.Workloads.Models.Api20230401.IApplicationServerConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.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();
- }
- }
- /// Gets or sets the application server configuration.
- [System.ComponentModel.TypeConverter(typeof(ApplicationServerConfigurationTypeConverter))]
- public partial interface IApplicationServerConfiguration
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerConfiguration.PowerShell.cs
deleted file mode 100644
index 935532ada497..000000000000
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerConfiguration.PowerShell.cs
+++ /dev/null
@@ -1,270 +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.Workloads.Models.Api20230401
-{
- using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
-
- /// Gets or sets the central server configuration.
- [System.ComponentModel.TypeConverter(typeof(CentralServerConfigurationTypeConverter))]
- public partial class CentralServerConfiguration
- {
-
- ///
- /// 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 a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal CentralServerConfiguration(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("VirtualMachineConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration) content.GetValueForProperty("VirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("SubnetId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).SubnetId, global::System.Convert.ToString);
- }
- if (content.Contains("InstanceCount"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).InstanceCount = (long) content.GetValueForProperty("InstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).InstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("VirtualMachineConfigurationImageReference"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference) content.GetValueForProperty("VirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationOSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile) content.GetValueForProperty("VirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationVMSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("VirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationVMSize, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferencePublisher"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferencePublisher = (string) content.GetValueForProperty("ImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferencePublisher, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceOffer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferenceOffer = (string) content.GetValueForProperty("ImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferenceOffer, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceSku"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferenceSku = (string) content.GetValueForProperty("ImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferenceSku, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferenceVersion, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileOsconfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSProfileOsconfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("OSProfileOsconfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSProfileOsconfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("OSProfileAdminUsername"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSProfileAdminUsername = (string) content.GetValueForProperty("OSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSProfileAdminUsername, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileAdminPassword"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSProfileAdminPassword = (string) content.GetValueForProperty("OSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSProfileAdminPassword, global::System.Convert.ToString);
- }
- if (content.Contains("OSConfigurationOstype"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal CentralServerConfiguration(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("VirtualMachineConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration) content.GetValueForProperty("VirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("SubnetId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).SubnetId, global::System.Convert.ToString);
- }
- if (content.Contains("InstanceCount"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).InstanceCount = (long) content.GetValueForProperty("InstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).InstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("VirtualMachineConfigurationImageReference"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference) content.GetValueForProperty("VirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationOSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile) content.GetValueForProperty("VirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationVMSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("VirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationVMSize, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferencePublisher"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferencePublisher = (string) content.GetValueForProperty("ImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferencePublisher, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceOffer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferenceOffer = (string) content.GetValueForProperty("ImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferenceOffer, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceSku"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferenceSku = (string) content.GetValueForProperty("ImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferenceSku, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).ImageReferenceVersion, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileOsconfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSProfileOsconfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("OSProfileOsconfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSProfileOsconfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("OSProfileAdminUsername"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSProfileAdminUsername = (string) content.GetValueForProperty("OSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSProfileAdminUsername, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileAdminPassword"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSProfileAdminPassword = (string) content.GetValueForProperty("OSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSProfileAdminPassword, global::System.Convert.ToString);
- }
- if (content.Contains("OSConfigurationOstype"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
- }
- 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.Workloads.Models.Api20230401.ICentralServerConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new CentralServerConfiguration(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.Workloads.Models.Api20230401.ICentralServerConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new CentralServerConfiguration(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.Workloads.Models.Api20230401.ICentralServerConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.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();
- }
- }
- /// Gets or sets the central server configuration.
- [System.ComponentModel.TypeConverter(typeof(CentralServerConfigurationTypeConverter))]
- public partial interface ICentralServerConfiguration
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseConfiguration.PowerShell.cs
deleted file mode 100644
index 4aa589591a24..000000000000
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseConfiguration.PowerShell.cs
+++ /dev/null
@@ -1,292 +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.Workloads.Models.Api20230401
-{
- using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
-
- /// Gets or sets the database configuration.
- [System.ComponentModel.TypeConverter(typeof(DatabaseConfigurationTypeConverter))]
- public partial class DatabaseConfiguration
- {
-
- ///
- /// 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 a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal DatabaseConfiguration(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("VirtualMachineConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration) content.GetValueForProperty("VirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DiskConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).DiskConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration) content.GetValueForProperty("DiskConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).DiskConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).DatabaseType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType?) content.GetValueForProperty("DatabaseType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).DatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType.CreateFrom);
- }
- if (content.Contains("SubnetId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).SubnetId, global::System.Convert.ToString);
- }
- if (content.Contains("InstanceCount"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).InstanceCount = (long) content.GetValueForProperty("InstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).InstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("VirtualMachineConfigurationImageReference"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference) content.GetValueForProperty("VirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationOSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile) content.GetValueForProperty("VirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationVMSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("VirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationVMSize, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferencePublisher"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferencePublisher = (string) content.GetValueForProperty("ImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferencePublisher, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceOffer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferenceOffer = (string) content.GetValueForProperty("ImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferenceOffer, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceSku"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferenceSku = (string) content.GetValueForProperty("ImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferenceSku, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferenceVersion, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileOsconfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSProfileOsconfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("OSProfileOsconfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSProfileOsconfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DiskConfigurationDiskVolumeConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).DiskConfigurationDiskVolumeConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations) content.GetValueForProperty("DiskConfigurationDiskVolumeConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).DiskConfigurationDiskVolumeConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationDiskVolumeConfigurationsTypeConverter.ConvertFrom);
- }
- if (content.Contains("OSProfileAdminUsername"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSProfileAdminUsername = (string) content.GetValueForProperty("OSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSProfileAdminUsername, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileAdminPassword"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSProfileAdminPassword = (string) content.GetValueForProperty("OSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSProfileAdminPassword, global::System.Convert.ToString);
- }
- if (content.Contains("OSConfigurationOstype"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal DatabaseConfiguration(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("VirtualMachineConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration) content.GetValueForProperty("VirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DiskConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).DiskConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration) content.GetValueForProperty("DiskConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).DiskConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).DatabaseType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType?) content.GetValueForProperty("DatabaseType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).DatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType.CreateFrom);
- }
- if (content.Contains("SubnetId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).SubnetId, global::System.Convert.ToString);
- }
- if (content.Contains("InstanceCount"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).InstanceCount = (long) content.GetValueForProperty("InstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).InstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("VirtualMachineConfigurationImageReference"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference) content.GetValueForProperty("VirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationOSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile) content.GetValueForProperty("VirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationVMSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("VirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationVMSize, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferencePublisher"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferencePublisher = (string) content.GetValueForProperty("ImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferencePublisher, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceOffer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferenceOffer = (string) content.GetValueForProperty("ImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferenceOffer, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceSku"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferenceSku = (string) content.GetValueForProperty("ImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferenceSku, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).ImageReferenceVersion, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileOsconfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSProfileOsconfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("OSProfileOsconfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSProfileOsconfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DiskConfigurationDiskVolumeConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).DiskConfigurationDiskVolumeConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations) content.GetValueForProperty("DiskConfigurationDiskVolumeConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).DiskConfigurationDiskVolumeConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationDiskVolumeConfigurationsTypeConverter.ConvertFrom);
- }
- if (content.Contains("OSProfileAdminUsername"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSProfileAdminUsername = (string) content.GetValueForProperty("OSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSProfileAdminUsername, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileAdminPassword"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSProfileAdminPassword = (string) content.GetValueForProperty("OSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSProfileAdminPassword, global::System.Convert.ToString);
- }
- if (content.Contains("OSConfigurationOstype"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
- }
- 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.Workloads.Models.Api20230401.IDatabaseConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new DatabaseConfiguration(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.Workloads.Models.Api20230401.IDatabaseConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new DatabaseConfiguration(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.Workloads.Models.Api20230401.IDatabaseConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.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();
- }
- }
- /// Gets or sets the database configuration.
- [System.ComponentModel.TypeConverter(typeof(DatabaseConfigurationTypeConverter))]
- public partial interface IDatabaseConfiguration
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/Monitor.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/Monitor.PowerShell.cs
index 0eca0768bb5f..59e562740b81 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/Monitor.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/Monitor.PowerShell.cs
@@ -111,7 +111,7 @@ internal Monitor(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Identity"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGeneratedTypeConverter.ConvertFrom);
}
if (content.Contains("Property"))
{
@@ -175,7 +175,7 @@ internal Monitor(global::System.Collections.IDictionary content)
}
if (content.Contains("IdentityUserAssignedIdentity"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentities1TypeConverter.ConvertFrom);
}
if (content.Contains("Error"))
{
@@ -256,7 +256,7 @@ internal Monitor(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Identity"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGeneratedTypeConverter.ConvertFrom);
}
if (content.Contains("Property"))
{
@@ -320,7 +320,7 @@ internal Monitor(global::System.Management.Automation.PSObject content)
}
if (content.Contains("IdentityUserAssignedIdentity"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentities1TypeConverter.ConvertFrom);
}
if (content.Contains("Error"))
{
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/Monitor.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/Monitor.cs
index d87afbab06d1..b75f1402c457 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/Monitor.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/Monitor.cs
@@ -62,22 +62,22 @@ public partial class Monitor :
public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)__trackedResource).Id; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity _identity;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated _identity;
/// [currently not in use] Managed service identity(user assigned identities)
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentity()); set => this._identity = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGenerated()); set => this._identity = value; }
/// Type of manage identity
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType)""); }
/// User assigned identities dictionary
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1 IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; }
/// The geo-location where the resource lives
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inherited)]
@@ -113,7 +113,7 @@ public partial class Monitor :
string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal.ErrorTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorPropertiesInternal)Property).ErrorTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorPropertiesInternal)Property).ErrorTarget = value; }
/// Internal Acessors for Identity
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentity()); set { {_identity = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGenerated()); set { {_identity = value;} } }
/// Internal Acessors for ManagedResourceGroupConfiguration
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IManagedRgConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorInternal.ManagedResourceGroupConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorPropertiesInternal)Property).ManagedResourceGroupConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMonitorPropertiesInternal)Property).ManagedResourceGroupConfiguration = value; }
@@ -334,8 +334,8 @@ public partial interface IMonitor :
ReadOnly = false,
Description = @"User assigned identities dictionary",
SerializedName = @"userAssignedIdentities",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1 IdentityUserAssignedIdentity { get; set; }
/// The ARM ID of the Log Analytics Workspace that is used for SAP monitoring.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
@@ -431,11 +431,11 @@ internal partial interface IMonitorInternal :
/// Target of the error.
string ErrorTarget { get; set; }
/// [currently not in use] Managed service identity(user assigned identities)
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity Identity { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated Identity { get; set; }
/// Type of manage identity
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType? IdentityType { get; set; }
/// User assigned identities dictionary
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1 IdentityUserAssignedIdentity { get; set; }
/// The ARM ID of the Log Analytics Workspace that is used for SAP monitoring.
string LogAnalyticsWorkspaceArmId { get; set; }
/// Managed resource group configuration
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/Monitor.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/Monitor.json.cs
index 602f4e0f3455..c92a1b5a4acb 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/Monitor.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/Monitor.json.cs
@@ -78,7 +78,7 @@ internal Monitor(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonO
return;
}
__trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.TrackedResource(json);
- {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentity.FromJson(__jsonIdentity) : Identity;}
+ {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGenerated.FromJson(__jsonIdentity) : Identity;}
{_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MonitorProperties.FromJson(__jsonProperties) : Property;}
AfterFromJson(json);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ProviderInstance.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ProviderInstance.PowerShell.cs
index 8fdfd880669b..2dab2cc1d412 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ProviderInstance.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ProviderInstance.PowerShell.cs
@@ -111,7 +111,7 @@ internal ProviderInstance(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Identity"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGeneratedTypeConverter.ConvertFrom);
}
if (content.Contains("Property"))
{
@@ -163,7 +163,7 @@ internal ProviderInstance(global::System.Collections.IDictionary content)
}
if (content.Contains("IdentityUserAssignedIdentity"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentities1TypeConverter.ConvertFrom);
}
if (content.Contains("Error"))
{
@@ -216,7 +216,7 @@ internal ProviderInstance(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Identity"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGeneratedTypeConverter.ConvertFrom);
}
if (content.Contains("Property"))
{
@@ -268,7 +268,7 @@ internal ProviderInstance(global::System.Management.Automation.PSObject content)
}
if (content.Contains("IdentityUserAssignedIdentity"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentities1TypeConverter.ConvertFrom);
}
if (content.Contains("Error"))
{
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ProviderInstance.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ProviderInstance.cs
index 3606283a08c0..3e802a9dc8e0 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ProviderInstance.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ProviderInstance.cs
@@ -53,22 +53,22 @@ public partial class ProviderInstance :
public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)__resource).Id; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity _identity;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated _identity;
/// [currently not in use] Managed service identity(user assigned identities)
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentity()); set => this._identity = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGenerated()); set => this._identity = value; }
/// Type of manage identity
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.FormatTable(Index = 4)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType)""); }
/// User assigned identities dictionary
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1 IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; }
/// Internal Acessors for Error
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IError Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstancePropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstancePropertiesInternal)Property).Error = value; }
@@ -89,7 +89,7 @@ public partial class ProviderInstance :
string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal.ErrorTarget { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstancePropertiesInternal)Property).ErrorTarget; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstancePropertiesInternal)Property).ErrorTarget = value; }
/// Internal Acessors for Identity
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentity()); set { {_identity = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGenerated()); set { {_identity = value;} } }
/// Internal Acessors for Property
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceProperties Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstanceProperties()); set { {_property = value;} } }
@@ -260,8 +260,8 @@ public partial interface IProviderInstance :
ReadOnly = false,
Description = @"User assigned identities dictionary",
SerializedName = @"userAssignedIdentities",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1 IdentityUserAssignedIdentity { get; set; }
/// Defines the provider specific properties.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
@@ -299,11 +299,11 @@ internal partial interface IProviderInstanceInternal :
/// Target of the error.
string ErrorTarget { get; set; }
/// [currently not in use] Managed service identity(user assigned identities)
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity Identity { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated Identity { get; set; }
/// Type of manage identity
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType? IdentityType { get; set; }
/// User assigned identities dictionary
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1 IdentityUserAssignedIdentity { get; set; }
/// Provider Instance properties
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IProviderInstanceProperties Property { get; set; }
/// Defines the provider specific properties.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ProviderInstance.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ProviderInstance.json.cs
index c8a9ebe512b9..a03472f08f7b 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ProviderInstance.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ProviderInstance.json.cs
@@ -78,7 +78,7 @@ internal ProviderInstance(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.J
return;
}
__resource = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.Resource(json);
- {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentity.FromJson(__jsonIdentity) : Identity;}
+ {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGenerated.FromJson(__jsonIdentity) : Identity;}
{_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ProviderInstanceProperties.FromJson(__jsonProperties) : Property;}
AfterFromJson(json);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerProperties.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerProperties.PowerShell.cs
deleted file mode 100644
index edad34878952..000000000000
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerProperties.PowerShell.cs
+++ /dev/null
@@ -1,318 +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.Workloads.Models.Api20230401
-{
- using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
-
- /// Defines the SAP Application Server instance properties.
- [System.ComponentModel.TypeConverter(typeof(SapApplicationServerPropertiesTypeConverter))]
- public partial class SapApplicationServerProperties
- {
-
- ///
- /// 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.Workloads.Models.Api20230401.ISapApplicationServerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new SapApplicationServerProperties(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.Workloads.Models.Api20230401.ISapApplicationServerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new SapApplicationServerProperties(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.Workloads.Models.Api20230401.ISapApplicationServerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal SapApplicationServerProperties(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("LoadBalancerDetail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails) content.GetValueForProperty("LoadBalancerDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetail, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerDetailsTypeConverter.ConvertFrom);
- }
- if (content.Contains("Error"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceErrorTypeConverter.ConvertFrom);
- }
- if (content.Contains("InstanceNo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).InstanceNo, global::System.Convert.ToString);
- }
- if (content.Contains("Subnet"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Subnet, global::System.Convert.ToString);
- }
- if (content.Contains("Hostname"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
- }
- if (content.Contains("KernelVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).KernelVersion, global::System.Convert.ToString);
- }
- if (content.Contains("KernelPatch"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).KernelPatch, global::System.Convert.ToString);
- }
- if (content.Contains("IPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("GatewayPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).GatewayPort = (long?) content.GetValueForProperty("GatewayPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).GatewayPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("IcmHttpPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).IcmHttpPort = (long?) content.GetValueForProperty("IcmHttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).IcmHttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("IcmHttpsPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).IcmHttpsPort = (long?) content.GetValueForProperty("IcmHttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).IcmHttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("VMDetail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerVMDetailsTypeConverter.ConvertFrom));
- }
- if (content.Contains("Status"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
- }
- if (content.Contains("Health"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState.CreateFrom);
- }
- if (content.Contains("LoadBalancerDetailId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetailId = (string) content.GetValueForProperty("LoadBalancerDetailId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetailId, global::System.Convert.ToString);
- }
- if (content.Contains("ErrorProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom);
- }
- if (content.Contains("Code"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Code, global::System.Convert.ToString);
- }
- if (content.Contains("Message"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Message, global::System.Convert.ToString);
- }
- if (content.Contains("Detail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom));
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal SapApplicationServerProperties(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("LoadBalancerDetail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails) content.GetValueForProperty("LoadBalancerDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetail, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerDetailsTypeConverter.ConvertFrom);
- }
- if (content.Contains("Error"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceErrorTypeConverter.ConvertFrom);
- }
- if (content.Contains("InstanceNo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).InstanceNo, global::System.Convert.ToString);
- }
- if (content.Contains("Subnet"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Subnet, global::System.Convert.ToString);
- }
- if (content.Contains("Hostname"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
- }
- if (content.Contains("KernelVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).KernelVersion, global::System.Convert.ToString);
- }
- if (content.Contains("KernelPatch"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).KernelPatch, global::System.Convert.ToString);
- }
- if (content.Contains("IPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("GatewayPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).GatewayPort = (long?) content.GetValueForProperty("GatewayPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).GatewayPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("IcmHttpPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).IcmHttpPort = (long?) content.GetValueForProperty("IcmHttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).IcmHttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("IcmHttpsPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).IcmHttpsPort = (long?) content.GetValueForProperty("IcmHttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).IcmHttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("VMDetail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerVMDetailsTypeConverter.ConvertFrom));
- }
- if (content.Contains("Status"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
- }
- if (content.Contains("Health"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState.CreateFrom);
- }
- if (content.Contains("LoadBalancerDetailId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetailId = (string) content.GetValueForProperty("LoadBalancerDetailId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetailId, global::System.Convert.ToString);
- }
- if (content.Contains("ErrorProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom);
- }
- if (content.Contains("Code"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Code, global::System.Convert.ToString);
- }
- if (content.Contains("Message"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Message, global::System.Convert.ToString);
- }
- if (content.Contains("Detail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.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.Workloads.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();
- }
- }
- /// Defines the SAP Application Server instance properties.
- [System.ComponentModel.TypeConverter(typeof(SapApplicationServerPropertiesTypeConverter))]
- public partial interface ISapApplicationServerProperties
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapCentralServerInstance.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapCentralServerInstance.PowerShell.cs
deleted file mode 100644
index d2064c217562..000000000000
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapCentralServerInstance.PowerShell.cs
+++ /dev/null
@@ -1,572 +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.Workloads.Models.Api20230401
-{
- using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
-
- /// Define the SAP Central Services Instance resource.
- [System.ComponentModel.TypeConverter(typeof(SapCentralServerInstanceTypeConverter))]
- public partial class SapCentralServerInstance
- {
-
- ///
- /// 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.Workloads.Models.Api20230401.ISapCentralServerInstance DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new SapCentralServerInstance(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.Workloads.Models.Api20230401.ISapCentralServerInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new SapCentralServerInstance(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.Workloads.Models.Api20230401.ISapCentralServerInstance FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal SapCentralServerInstance(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.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapCentralServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.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.Workloads.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.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.Workloads.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("Tag"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom);
- }
- if (content.Contains("Location"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
- }
- if (content.Contains("MessageServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerProperties) content.GetValueForProperty("MessageServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MessageServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("EnqueueServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerProperties) content.GetValueForProperty("EnqueueServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.EnqueueServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("GatewayServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).GatewayServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerProperties) content.GetValueForProperty("GatewayServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).GatewayServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.GatewayServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("EnqueueReplicationServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerProperties) content.GetValueForProperty("EnqueueReplicationServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.EnqueueReplicationServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("LoadBalancerDetail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).LoadBalancerDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails) content.GetValueForProperty("LoadBalancerDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).LoadBalancerDetail, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerDetailsTypeConverter.ConvertFrom);
- }
- if (content.Contains("Error"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceErrorTypeConverter.ConvertFrom);
- }
- if (content.Contains("InstanceNo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).InstanceNo, global::System.Convert.ToString);
- }
- if (content.Contains("Subnet"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Subnet, global::System.Convert.ToString);
- }
- if (content.Contains("KernelVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).KernelVersion, global::System.Convert.ToString);
- }
- if (content.Contains("KernelPatch"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).KernelPatch, global::System.Convert.ToString);
- }
- if (content.Contains("VMDetail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CentralServerVMDetailsTypeConverter.ConvertFrom));
- }
- if (content.Contains("Status"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
- }
- if (content.Contains("Health"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState.CreateFrom);
- }
- if (content.Contains("MessageServerPropertyMSPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyMSPort = (long?) content.GetValueForProperty("MessageServerPropertyMSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyMSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHttpPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHttpPort = (long?) content.GetValueForProperty("MessageServerPropertyHttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHttpsPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHttpsPort = (long?) content.GetValueForProperty("MessageServerPropertyHttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHostname"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHostname = (string) content.GetValueForProperty("MessageServerPropertyHostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHostname, global::System.Convert.ToString);
- }
- if (content.Contains("MessageServerPropertyIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyIPAddress = (string) content.GetValueForProperty("MessageServerPropertyIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueServerPropertyHostname"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyHostname = (string) content.GetValueForProperty("EnqueueServerPropertyHostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyHostname, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueServerPropertyIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyIPAddress = (string) content.GetValueForProperty("EnqueueServerPropertyIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueServerPropertyPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyPort = (long?) content.GetValueForProperty("EnqueueServerPropertyPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("GatewayServerPropertyPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).GatewayServerPropertyPort = (long?) content.GetValueForProperty("GatewayServerPropertyPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).GatewayServerPropertyPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("EnqueueReplicationServerPropertyInstanceNo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyInstanceNo = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyInstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyInstanceNo, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyHostname"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyHostname = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyHostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyHostname, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyKernelVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyKernelVersion = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyKernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyKernelVersion, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyKernelPatch"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyKernelPatch = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyKernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyKernelPatch, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyIPAddress = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("LoadBalancerDetailId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).LoadBalancerDetailId = (string) content.GetValueForProperty("LoadBalancerDetailId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).LoadBalancerDetailId, global::System.Convert.ToString);
- }
- if (content.Contains("MessageServerPropertyInternalMSPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyInternalMSPort = (long?) content.GetValueForProperty("MessageServerPropertyInternalMSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyInternalMSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("MessageServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("EnqueueServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("EnqueueServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("GatewayServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).GatewayServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("GatewayServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).GatewayServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("EnqueueReplicationServerPropertyErsVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyErsVersion = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType?) content.GetValueForProperty("EnqueueReplicationServerPropertyErsVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyErsVersion, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType.CreateFrom);
- }
- if (content.Contains("EnqueueReplicationServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("EnqueueReplicationServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("ErrorProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom);
- }
- if (content.Contains("Code"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Code, global::System.Convert.ToString);
- }
- if (content.Contains("Message"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Message, global::System.Convert.ToString);
- }
- if (content.Contains("Detail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom));
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal SapCentralServerInstance(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.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapCentralServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("SystemDataCreatedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataCreatedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.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.Workloads.Models.Api30.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedBy"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString);
- }
- if (content.Contains("SystemDataLastModifiedByType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CreatedByType.CreateFrom);
- }
- if (content.Contains("SystemDataLastModifiedAt"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.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.Workloads.Models.Api30.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.SystemDataTypeConverter.ConvertFrom);
- }
- if (content.Contains("Id"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).Id, global::System.Convert.ToString);
- }
- if (content.Contains("Name"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).Name, global::System.Convert.ToString);
- }
- if (content.Contains("Type"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)this).Type, global::System.Convert.ToString);
- }
- if (content.Contains("Tag"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.TrackedResourceTagsTypeConverter.ConvertFrom);
- }
- if (content.Contains("Location"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
- }
- if (content.Contains("MessageServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerProperties) content.GetValueForProperty("MessageServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MessageServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("EnqueueServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerProperties) content.GetValueForProperty("EnqueueServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.EnqueueServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("GatewayServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).GatewayServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerProperties) content.GetValueForProperty("GatewayServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).GatewayServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.GatewayServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("EnqueueReplicationServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerProperties) content.GetValueForProperty("EnqueueReplicationServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.EnqueueReplicationServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("LoadBalancerDetail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).LoadBalancerDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails) content.GetValueForProperty("LoadBalancerDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).LoadBalancerDetail, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerDetailsTypeConverter.ConvertFrom);
- }
- if (content.Contains("Error"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceErrorTypeConverter.ConvertFrom);
- }
- if (content.Contains("InstanceNo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).InstanceNo, global::System.Convert.ToString);
- }
- if (content.Contains("Subnet"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Subnet, global::System.Convert.ToString);
- }
- if (content.Contains("KernelVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).KernelVersion, global::System.Convert.ToString);
- }
- if (content.Contains("KernelPatch"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).KernelPatch, global::System.Convert.ToString);
- }
- if (content.Contains("VMDetail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CentralServerVMDetailsTypeConverter.ConvertFrom));
- }
- if (content.Contains("Status"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
- }
- if (content.Contains("Health"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState.CreateFrom);
- }
- if (content.Contains("MessageServerPropertyMSPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyMSPort = (long?) content.GetValueForProperty("MessageServerPropertyMSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyMSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHttpPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHttpPort = (long?) content.GetValueForProperty("MessageServerPropertyHttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHttpsPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHttpsPort = (long?) content.GetValueForProperty("MessageServerPropertyHttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHostname"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHostname = (string) content.GetValueForProperty("MessageServerPropertyHostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHostname, global::System.Convert.ToString);
- }
- if (content.Contains("MessageServerPropertyIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyIPAddress = (string) content.GetValueForProperty("MessageServerPropertyIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueServerPropertyHostname"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyHostname = (string) content.GetValueForProperty("EnqueueServerPropertyHostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyHostname, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueServerPropertyIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyIPAddress = (string) content.GetValueForProperty("EnqueueServerPropertyIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueServerPropertyPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyPort = (long?) content.GetValueForProperty("EnqueueServerPropertyPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("GatewayServerPropertyPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).GatewayServerPropertyPort = (long?) content.GetValueForProperty("GatewayServerPropertyPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).GatewayServerPropertyPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("EnqueueReplicationServerPropertyInstanceNo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyInstanceNo = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyInstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyInstanceNo, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyHostname"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyHostname = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyHostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyHostname, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyKernelVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyKernelVersion = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyKernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyKernelVersion, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyKernelPatch"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyKernelPatch = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyKernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyKernelPatch, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyIPAddress = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("LoadBalancerDetailId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).LoadBalancerDetailId = (string) content.GetValueForProperty("LoadBalancerDetailId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).LoadBalancerDetailId, global::System.Convert.ToString);
- }
- if (content.Contains("MessageServerPropertyInternalMSPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyInternalMSPort = (long?) content.GetValueForProperty("MessageServerPropertyInternalMSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyInternalMSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("MessageServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).MessageServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("EnqueueServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("EnqueueServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("GatewayServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).GatewayServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("GatewayServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).GatewayServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("EnqueueReplicationServerPropertyErsVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyErsVersion = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType?) content.GetValueForProperty("EnqueueReplicationServerPropertyErsVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyErsVersion, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType.CreateFrom);
- }
- if (content.Contains("EnqueueReplicationServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("EnqueueReplicationServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).EnqueueReplicationServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("ErrorProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom);
- }
- if (content.Contains("Code"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Code, global::System.Convert.ToString);
- }
- if (content.Contains("Message"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Message, global::System.Convert.ToString);
- }
- if (content.Contains("Detail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerInstanceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.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.Workloads.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();
- }
- }
- /// Define the SAP Central Services Instance resource.
- [System.ComponentModel.TypeConverter(typeof(SapCentralServerInstanceTypeConverter))]
- public partial interface ISapCentralServerInstance
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapCentralServerProperties.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapCentralServerProperties.PowerShell.cs
deleted file mode 100644
index c0b026eefddb..000000000000
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapCentralServerProperties.PowerShell.cs
+++ /dev/null
@@ -1,470 +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.Workloads.Models.Api20230401
-{
- using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
-
- /// Defines the SAP Central Services Instance properties.
- [System.ComponentModel.TypeConverter(typeof(SapCentralServerPropertiesTypeConverter))]
- public partial class SapCentralServerProperties
- {
-
- ///
- /// 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.Workloads.Models.Api20230401.ISapCentralServerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new SapCentralServerProperties(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.Workloads.Models.Api20230401.ISapCentralServerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new SapCentralServerProperties(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.Workloads.Models.Api20230401.ISapCentralServerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal SapCentralServerProperties(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("MessageServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerProperties) content.GetValueForProperty("MessageServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MessageServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("EnqueueServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerProperties) content.GetValueForProperty("EnqueueServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.EnqueueServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("GatewayServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).GatewayServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerProperties) content.GetValueForProperty("GatewayServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).GatewayServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.GatewayServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("EnqueueReplicationServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerProperties) content.GetValueForProperty("EnqueueReplicationServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.EnqueueReplicationServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("LoadBalancerDetail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).LoadBalancerDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails) content.GetValueForProperty("LoadBalancerDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).LoadBalancerDetail, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerDetailsTypeConverter.ConvertFrom);
- }
- if (content.Contains("Error"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceErrorTypeConverter.ConvertFrom);
- }
- if (content.Contains("InstanceNo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).InstanceNo, global::System.Convert.ToString);
- }
- if (content.Contains("Subnet"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Subnet, global::System.Convert.ToString);
- }
- if (content.Contains("KernelVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).KernelVersion, global::System.Convert.ToString);
- }
- if (content.Contains("KernelPatch"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).KernelPatch, global::System.Convert.ToString);
- }
- if (content.Contains("VMDetail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CentralServerVMDetailsTypeConverter.ConvertFrom));
- }
- if (content.Contains("Status"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
- }
- if (content.Contains("Health"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState.CreateFrom);
- }
- if (content.Contains("MessageServerPropertyMSPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyMSPort = (long?) content.GetValueForProperty("MessageServerPropertyMSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyMSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHttpPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHttpPort = (long?) content.GetValueForProperty("MessageServerPropertyHttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHttpsPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHttpsPort = (long?) content.GetValueForProperty("MessageServerPropertyHttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHostname"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHostname = (string) content.GetValueForProperty("MessageServerPropertyHostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHostname, global::System.Convert.ToString);
- }
- if (content.Contains("MessageServerPropertyIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyIPAddress = (string) content.GetValueForProperty("MessageServerPropertyIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueServerPropertyHostname"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyHostname = (string) content.GetValueForProperty("EnqueueServerPropertyHostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyHostname, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueServerPropertyIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyIPAddress = (string) content.GetValueForProperty("EnqueueServerPropertyIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueServerPropertyPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyPort = (long?) content.GetValueForProperty("EnqueueServerPropertyPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("GatewayServerPropertyPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).GatewayServerPropertyPort = (long?) content.GetValueForProperty("GatewayServerPropertyPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).GatewayServerPropertyPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("EnqueueReplicationServerPropertyInstanceNo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyInstanceNo = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyInstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyInstanceNo, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyHostname"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyHostname = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyHostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyHostname, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyKernelVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyKernelVersion = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyKernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyKernelVersion, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyKernelPatch"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyKernelPatch = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyKernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyKernelPatch, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyIPAddress = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("LoadBalancerDetailId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).LoadBalancerDetailId = (string) content.GetValueForProperty("LoadBalancerDetailId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).LoadBalancerDetailId, global::System.Convert.ToString);
- }
- if (content.Contains("MessageServerPropertyInternalMSPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyInternalMSPort = (long?) content.GetValueForProperty("MessageServerPropertyInternalMSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyInternalMSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("MessageServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("EnqueueServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("EnqueueServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("GatewayServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).GatewayServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("GatewayServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).GatewayServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("EnqueueReplicationServerPropertyErsVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyErsVersion = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType?) content.GetValueForProperty("EnqueueReplicationServerPropertyErsVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyErsVersion, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType.CreateFrom);
- }
- if (content.Contains("EnqueueReplicationServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("EnqueueReplicationServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("ErrorProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom);
- }
- if (content.Contains("Code"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Code, global::System.Convert.ToString);
- }
- if (content.Contains("Message"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Message, global::System.Convert.ToString);
- }
- if (content.Contains("Detail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom));
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal SapCentralServerProperties(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("MessageServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerProperties) content.GetValueForProperty("MessageServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.MessageServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("EnqueueServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerProperties) content.GetValueForProperty("EnqueueServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.EnqueueServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("GatewayServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).GatewayServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerProperties) content.GetValueForProperty("GatewayServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).GatewayServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.GatewayServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("EnqueueReplicationServerProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerProperties) content.GetValueForProperty("EnqueueReplicationServerProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.EnqueueReplicationServerPropertiesTypeConverter.ConvertFrom);
- }
- if (content.Contains("LoadBalancerDetail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).LoadBalancerDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails) content.GetValueForProperty("LoadBalancerDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).LoadBalancerDetail, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerDetailsTypeConverter.ConvertFrom);
- }
- if (content.Contains("Error"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceErrorTypeConverter.ConvertFrom);
- }
- if (content.Contains("InstanceNo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).InstanceNo, global::System.Convert.ToString);
- }
- if (content.Contains("Subnet"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Subnet, global::System.Convert.ToString);
- }
- if (content.Contains("KernelVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).KernelVersion, global::System.Convert.ToString);
- }
- if (content.Contains("KernelPatch"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).KernelPatch, global::System.Convert.ToString);
- }
- if (content.Contains("VMDetail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CentralServerVMDetailsTypeConverter.ConvertFrom));
- }
- if (content.Contains("Status"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
- }
- if (content.Contains("Health"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState.CreateFrom);
- }
- if (content.Contains("MessageServerPropertyMSPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyMSPort = (long?) content.GetValueForProperty("MessageServerPropertyMSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyMSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHttpPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHttpPort = (long?) content.GetValueForProperty("MessageServerPropertyHttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHttpsPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHttpsPort = (long?) content.GetValueForProperty("MessageServerPropertyHttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHostname"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHostname = (string) content.GetValueForProperty("MessageServerPropertyHostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHostname, global::System.Convert.ToString);
- }
- if (content.Contains("MessageServerPropertyIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyIPAddress = (string) content.GetValueForProperty("MessageServerPropertyIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueServerPropertyHostname"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyHostname = (string) content.GetValueForProperty("EnqueueServerPropertyHostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyHostname, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueServerPropertyIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyIPAddress = (string) content.GetValueForProperty("EnqueueServerPropertyIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueServerPropertyPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyPort = (long?) content.GetValueForProperty("EnqueueServerPropertyPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("GatewayServerPropertyPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).GatewayServerPropertyPort = (long?) content.GetValueForProperty("GatewayServerPropertyPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).GatewayServerPropertyPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("EnqueueReplicationServerPropertyInstanceNo"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyInstanceNo = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyInstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyInstanceNo, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyHostname"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyHostname = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyHostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyHostname, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyKernelVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyKernelVersion = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyKernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyKernelVersion, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyKernelPatch"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyKernelPatch = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyKernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyKernelPatch, global::System.Convert.ToString);
- }
- if (content.Contains("EnqueueReplicationServerPropertyIPAddress"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyIPAddress = (string) content.GetValueForProperty("EnqueueReplicationServerPropertyIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyIPAddress, global::System.Convert.ToString);
- }
- if (content.Contains("LoadBalancerDetailId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).LoadBalancerDetailId = (string) content.GetValueForProperty("LoadBalancerDetailId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).LoadBalancerDetailId, global::System.Convert.ToString);
- }
- if (content.Contains("MessageServerPropertyInternalMSPort"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyInternalMSPort = (long?) content.GetValueForProperty("MessageServerPropertyInternalMSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyInternalMSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("MessageServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("MessageServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).MessageServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("EnqueueServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("EnqueueServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("GatewayServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).GatewayServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("GatewayServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).GatewayServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("EnqueueReplicationServerPropertyErsVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyErsVersion = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType?) content.GetValueForProperty("EnqueueReplicationServerPropertyErsVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyErsVersion, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType.CreateFrom);
- }
- if (content.Contains("EnqueueReplicationServerPropertyHealth"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyHealth = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("EnqueueReplicationServerPropertyHealth",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).EnqueueReplicationServerPropertyHealth, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("ErrorProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom);
- }
- if (content.Contains("Code"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Code, global::System.Convert.ToString);
- }
- if (content.Contains("Message"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Message, global::System.Convert.ToString);
- }
- if (content.Contains("Detail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapCentralServerPropertiesInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.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.Workloads.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();
- }
- }
- /// Defines the SAP Central Services Instance properties.
- [System.ComponentModel.TypeConverter(typeof(SapCentralServerPropertiesTypeConverter))]
- public partial interface ISapCentralServerProperties
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapSupportedSkusRequest.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapSupportedSkusRequest.PowerShell.cs
deleted file mode 100644
index 0fa0878128f9..000000000000
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapSupportedSkusRequest.PowerShell.cs
+++ /dev/null
@@ -1,204 +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.Workloads.Models.Api20230401
-{
- using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
-
- /// The SAP request to get list of supported SKUs.
- [System.ComponentModel.TypeConverter(typeof(SapSupportedSkusRequestTypeConverter))]
- public partial class SapSupportedSkusRequest
- {
-
- ///
- /// 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.Workloads.Models.Api20230401.ISapSupportedSkusRequest DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new SapSupportedSkusRequest(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.Workloads.Models.Api20230401.ISapSupportedSkusRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new SapSupportedSkusRequest(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.Workloads.Models.Api20230401.ISapSupportedSkusRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal SapSupportedSkusRequest(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("AppLocation"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).AppLocation, global::System.Convert.ToString);
- }
- if (content.Contains("Environment"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).Environment = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapEnvironmentType) content.GetValueForProperty("Environment",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).Environment, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapEnvironmentType.CreateFrom);
- }
- if (content.Contains("SapProduct"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).SapProduct = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType) content.GetValueForProperty("SapProduct",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).SapProduct, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType.CreateFrom);
- }
- if (content.Contains("DeploymentType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).DeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("DeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).DeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
- }
- if (content.Contains("DatabaseType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).DatabaseType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType) content.GetValueForProperty("DatabaseType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).DatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType.CreateFrom);
- }
- if (content.Contains("HighAvailabilityType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).HighAvailabilityType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType?) content.GetValueForProperty("HighAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).HighAvailabilityType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType.CreateFrom);
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal SapSupportedSkusRequest(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("AppLocation"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).AppLocation, global::System.Convert.ToString);
- }
- if (content.Contains("Environment"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).Environment = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapEnvironmentType) content.GetValueForProperty("Environment",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).Environment, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapEnvironmentType.CreateFrom);
- }
- if (content.Contains("SapProduct"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).SapProduct = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType) content.GetValueForProperty("SapProduct",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).SapProduct, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType.CreateFrom);
- }
- if (content.Contains("DeploymentType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).DeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("DeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).DeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
- }
- if (content.Contains("DatabaseType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).DatabaseType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType) content.GetValueForProperty("DatabaseType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).DatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType.CreateFrom);
- }
- if (content.Contains("HighAvailabilityType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).HighAvailabilityType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType?) content.GetValueForProperty("HighAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapSupportedSkusRequestInternal)this).HighAvailabilityType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType.CreateFrom);
- }
- 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.Workloads.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 SAP request to get list of supported SKUs.
- [System.ComponentModel.TypeConverter(typeof(SapSupportedSkusRequestTypeConverter))]
- public partial interface ISapSupportedSkusRequest
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapVirtualInstanceProperties.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapVirtualInstanceProperties.PowerShell.cs
deleted file mode 100644
index 7dae133c85a3..000000000000
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapVirtualInstanceProperties.PowerShell.cs
+++ /dev/null
@@ -1,270 +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.Workloads.Models.Api20230401
-{
- using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
-
- /// Defines the Virtual Instance for SAP solutions resource properties.
- [System.ComponentModel.TypeConverter(typeof(SapVirtualInstancePropertiesTypeConverter))]
- public partial class SapVirtualInstanceProperties
- {
-
- ///
- /// 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.Workloads.Models.Api20230401.ISapVirtualInstanceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new SapVirtualInstanceProperties(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.Workloads.Models.Api20230401.ISapVirtualInstanceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new SapVirtualInstanceProperties(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.Workloads.Models.Api20230401.ISapVirtualInstanceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal SapVirtualInstanceProperties(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("ManagedResourceGroupConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ManagedResourceGroupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IManagedRgConfiguration) content.GetValueForProperty("ManagedResourceGroupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ManagedResourceGroupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ManagedRgConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("Error"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceErrorTypeConverter.ConvertFrom);
- }
- if (content.Contains("Environment"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Environment = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapEnvironmentType) content.GetValueForProperty("Environment",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Environment, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapEnvironmentType.CreateFrom);
- }
- if (content.Contains("SapProduct"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).SapProduct = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType) content.GetValueForProperty("SapProduct",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).SapProduct, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType.CreateFrom);
- }
- if (content.Contains("Configuration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfiguration) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Configuration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("Status"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
- }
- if (content.Contains("Health"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("State"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceState.CreateFrom);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState.CreateFrom);
- }
- if (content.Contains("ManagedResourceGroupConfigurationName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ManagedResourceGroupConfigurationName = (string) content.GetValueForProperty("ManagedResourceGroupConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ManagedResourceGroupConfigurationName, global::System.Convert.ToString);
- }
- if (content.Contains("ErrorProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom);
- }
- if (content.Contains("Code"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Code, global::System.Convert.ToString);
- }
- if (content.Contains("Message"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Message, global::System.Convert.ToString);
- }
- if (content.Contains("Detail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom));
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal SapVirtualInstanceProperties(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("ManagedResourceGroupConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ManagedResourceGroupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IManagedRgConfiguration) content.GetValueForProperty("ManagedResourceGroupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ManagedResourceGroupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ManagedRgConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("Error"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceErrorTypeConverter.ConvertFrom);
- }
- if (content.Contains("Environment"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Environment = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapEnvironmentType) content.GetValueForProperty("Environment",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Environment, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapEnvironmentType.CreateFrom);
- }
- if (content.Contains("SapProduct"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).SapProduct = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType) content.GetValueForProperty("SapProduct",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).SapProduct, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType.CreateFrom);
- }
- if (content.Contains("Configuration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Configuration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfiguration) content.GetValueForProperty("Configuration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Configuration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("Status"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
- }
- if (content.Contains("Health"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
- }
- if (content.Contains("State"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceState.CreateFrom);
- }
- if (content.Contains("ProvisioningState"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState.CreateFrom);
- }
- if (content.Contains("ManagedResourceGroupConfigurationName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ManagedResourceGroupConfigurationName = (string) content.GetValueForProperty("ManagedResourceGroupConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ManagedResourceGroupConfigurationName, global::System.Convert.ToString);
- }
- if (content.Contains("ErrorProperty"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom);
- }
- if (content.Contains("Code"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Code, global::System.Convert.ToString);
- }
- if (content.Contains("Message"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Message, global::System.Convert.ToString);
- }
- if (content.Contains("Detail"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstancePropertiesInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.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.Workloads.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();
- }
- }
- /// Defines the Virtual Instance for SAP solutions resource properties.
- [System.ComponentModel.TypeConverter(typeof(SapVirtualInstancePropertiesTypeConverter))]
- public partial interface ISapVirtualInstanceProperties
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SingleServerConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SingleServerConfiguration.PowerShell.cs
deleted file mode 100644
index a5cb3a647406..000000000000
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SingleServerConfiguration.PowerShell.cs
+++ /dev/null
@@ -1,336 +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.Workloads.Models.Api20230401
-{
- using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
-
- ///
- /// Gets or sets the single server configuration. For prerequisites for creating the infrastructure, please see [here](https://go.microsoft.com/fwlink/?linkid=2212611&clcid=0x409)
- ///
- [System.ComponentModel.TypeConverter(typeof(SingleServerConfigurationTypeConverter))]
- public partial class SingleServerConfiguration
- {
-
- ///
- /// 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.Workloads.Models.Api20230401.ISingleServerConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new SingleServerConfiguration(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.Workloads.Models.Api20230401.ISingleServerConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new SingleServerConfiguration(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.Workloads.Models.Api20230401.ISingleServerConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal SingleServerConfiguration(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("NetworkConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).NetworkConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfiguration) content.GetValueForProperty("NetworkConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).NetworkConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.NetworkConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration) content.GetValueForProperty("VirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DbDiskConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).DbDiskConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration) content.GetValueForProperty("DbDiskConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).DbDiskConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("CustomResourceName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).CustomResourceName = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerCustomResourceNames) content.GetValueForProperty("CustomResourceName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).CustomResourceName, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SingleServerCustomResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).DatabaseType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType?) content.GetValueForProperty("DatabaseType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).DatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType.CreateFrom);
- }
- if (content.Contains("SubnetId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).SubnetId, global::System.Convert.ToString);
- }
- if (content.Contains("DeploymentType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).DeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("DeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).DeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
- }
- if (content.Contains("AppResourceGroup"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).AppResourceGroup = (string) content.GetValueForProperty("AppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).AppResourceGroup, global::System.Convert.ToString);
- }
- if (content.Contains("VirtualMachineConfigurationImageReference"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference) content.GetValueForProperty("VirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationOSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile) content.GetValueForProperty("VirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationVMSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("VirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfigurationVMSize, global::System.Convert.ToString);
- }
- if (content.Contains("NetworkConfigurationIsSecondaryIPEnabled"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).NetworkConfigurationIsSecondaryIPEnabled = (bool?) content.GetValueForProperty("NetworkConfigurationIsSecondaryIPEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).NetworkConfigurationIsSecondaryIPEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
- }
- if (content.Contains("ImageReferencePublisher"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferencePublisher = (string) content.GetValueForProperty("ImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferencePublisher, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceOffer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferenceOffer = (string) content.GetValueForProperty("ImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferenceOffer, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceSku"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferenceSku = (string) content.GetValueForProperty("ImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferenceSku, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferenceVersion, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileOsconfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSProfileOsconfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("OSProfileOsconfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSProfileOsconfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DbDiskConfigurationDiskVolumeConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).DbDiskConfigurationDiskVolumeConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations) content.GetValueForProperty("DbDiskConfigurationDiskVolumeConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).DbDiskConfigurationDiskVolumeConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationDiskVolumeConfigurationsTypeConverter.ConvertFrom);
- }
- if (content.Contains("CustomResourceNameNamingPatternType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).CustomResourceNameNamingPatternType = (string) content.GetValueForProperty("CustomResourceNameNamingPatternType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).CustomResourceNameNamingPatternType, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileAdminUsername"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSProfileAdminUsername = (string) content.GetValueForProperty("OSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSProfileAdminUsername, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileAdminPassword"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSProfileAdminPassword = (string) content.GetValueForProperty("OSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSProfileAdminPassword, global::System.Convert.ToString);
- }
- if (content.Contains("OSConfigurationOstype"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal SingleServerConfiguration(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("NetworkConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).NetworkConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfiguration) content.GetValueForProperty("NetworkConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).NetworkConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.NetworkConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration) content.GetValueForProperty("VirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DbDiskConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).DbDiskConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration) content.GetValueForProperty("DbDiskConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).DbDiskConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("CustomResourceName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).CustomResourceName = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerCustomResourceNames) content.GetValueForProperty("CustomResourceName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).CustomResourceName, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SingleServerCustomResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).DatabaseType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType?) content.GetValueForProperty("DatabaseType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).DatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType.CreateFrom);
- }
- if (content.Contains("SubnetId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).SubnetId, global::System.Convert.ToString);
- }
- if (content.Contains("DeploymentType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).DeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("DeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).DeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
- }
- if (content.Contains("AppResourceGroup"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).AppResourceGroup = (string) content.GetValueForProperty("AppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).AppResourceGroup, global::System.Convert.ToString);
- }
- if (content.Contains("VirtualMachineConfigurationImageReference"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference) content.GetValueForProperty("VirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationOSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile) content.GetValueForProperty("VirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("VirtualMachineConfigurationVMSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("VirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).VirtualMachineConfigurationVMSize, global::System.Convert.ToString);
- }
- if (content.Contains("NetworkConfigurationIsSecondaryIPEnabled"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).NetworkConfigurationIsSecondaryIPEnabled = (bool?) content.GetValueForProperty("NetworkConfigurationIsSecondaryIPEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).NetworkConfigurationIsSecondaryIPEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
- }
- if (content.Contains("ImageReferencePublisher"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferencePublisher = (string) content.GetValueForProperty("ImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferencePublisher, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceOffer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferenceOffer = (string) content.GetValueForProperty("ImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferenceOffer, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceSku"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferenceSku = (string) content.GetValueForProperty("ImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferenceSku, global::System.Convert.ToString);
- }
- if (content.Contains("ImageReferenceVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).ImageReferenceVersion, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileOsconfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSProfileOsconfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("OSProfileOsconfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSProfileOsconfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DbDiskConfigurationDiskVolumeConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).DbDiskConfigurationDiskVolumeConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations) content.GetValueForProperty("DbDiskConfigurationDiskVolumeConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).DbDiskConfigurationDiskVolumeConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationDiskVolumeConfigurationsTypeConverter.ConvertFrom);
- }
- if (content.Contains("CustomResourceNameNamingPatternType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).CustomResourceNameNamingPatternType = (string) content.GetValueForProperty("CustomResourceNameNamingPatternType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).CustomResourceNameNamingPatternType, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileAdminUsername"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSProfileAdminUsername = (string) content.GetValueForProperty("OSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSProfileAdminUsername, global::System.Convert.ToString);
- }
- if (content.Contains("OSProfileAdminPassword"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSProfileAdminPassword = (string) content.GetValueForProperty("OSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSProfileAdminPassword, global::System.Convert.ToString);
- }
- if (content.Contains("OSConfigurationOstype"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISingleServerConfigurationInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
- }
- 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.Workloads.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();
- }
- }
- /// Gets or sets the single server configuration. For prerequisites for creating the infrastructure, please see [here](https://go.microsoft.com/fwlink/?linkid=2212611&clcid=0x409)
- [System.ComponentModel.TypeConverter(typeof(SingleServerConfigurationTypeConverter))]
- public partial interface ISingleServerConfiguration
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ThreeTierConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ThreeTierConfiguration.PowerShell.cs
deleted file mode 100644
index 32b330e5c125..000000000000
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ThreeTierConfiguration.PowerShell.cs
+++ /dev/null
@@ -1,630 +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.Workloads.Models.Api20230401
-{
- using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
-
- ///
- /// Gets or sets the three tier SAP configuration. For prerequisites for creating the infrastructure, please see [here](https://go.microsoft.com/fwlink/?linkid=2212611&clcid=0x409)
- ///
- [System.ComponentModel.TypeConverter(typeof(ThreeTierConfigurationTypeConverter))]
- public partial class ThreeTierConfiguration
- {
-
- ///
- /// 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.Workloads.Models.Api20230401.IThreeTierConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new ThreeTierConfiguration(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.Workloads.Models.Api20230401.IThreeTierConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new ThreeTierConfiguration(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.Workloads.Models.Api20230401.IThreeTierConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal ThreeTierConfiguration(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("NetworkConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).NetworkConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfiguration) content.GetValueForProperty("NetworkConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).NetworkConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.NetworkConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("CentralServer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfiguration) content.GetValueForProperty("CentralServer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CentralServerConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("ApplicationServer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfiguration) content.GetValueForProperty("ApplicationServer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseServer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfiguration) content.GetValueForProperty("DatabaseServer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DatabaseConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("HighAvailabilityConfig"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).HighAvailabilityConfig = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfiguration) content.GetValueForProperty("HighAvailabilityConfig",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).HighAvailabilityConfig, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.HighAvailabilityConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("StorageConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).StorageConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageConfiguration) content.GetValueForProperty("StorageConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).StorageConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.StorageConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("CustomResourceName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CustomResourceName = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierCustomResourceNames) content.GetValueForProperty("CustomResourceName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CustomResourceName, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ThreeTierCustomResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("DeploymentType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).DeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("DeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).DeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
- }
- if (content.Contains("AppResourceGroup"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).AppResourceGroup = (string) content.GetValueForProperty("AppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).AppResourceGroup, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerDiskConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerDiskConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration) content.GetValueForProperty("DatabaseServerDiskConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerDiskConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("NetworkConfigurationIsSecondaryIPEnabled"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).NetworkConfigurationIsSecondaryIPEnabled = (bool?) content.GetValueForProperty("NetworkConfigurationIsSecondaryIPEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).NetworkConfigurationIsSecondaryIPEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
- }
- if (content.Contains("CentralServerVirtualMachineConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration) content.GetValueForProperty("CentralServerVirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("CentralServerSubnetId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerSubnetId = (string) content.GetValueForProperty("CentralServerSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerSubnetId, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerInstanceCount"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerInstanceCount = (long) content.GetValueForProperty("CentralServerInstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerInstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationImageReference"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference) content.GetValueForProperty("CentralServerVirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationOSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile) content.GetValueForProperty("CentralServerVirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationVMSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("CentralServerVirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationVMSize, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration) content.GetValueForProperty("ApplicationServerVirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("ApplicationServerSubnetId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerSubnetId = (string) content.GetValueForProperty("ApplicationServerSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerSubnetId, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerInstanceCount"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerInstanceCount = (long) content.GetValueForProperty("ApplicationServerInstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerInstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationImageReference"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationOSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationVMSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationVMSize, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration) content.GetValueForProperty("DatabaseServerVirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseServerDatabaseType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerDatabaseType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType?) content.GetValueForProperty("DatabaseServerDatabaseType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerDatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType.CreateFrom);
- }
- if (content.Contains("DatabaseServerSubnetId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerSubnetId = (string) content.GetValueForProperty("DatabaseServerSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerSubnetId, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerInstanceCount"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerInstanceCount = (long) content.GetValueForProperty("DatabaseServerInstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerInstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationImageReference"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationOSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationVMSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationVMSize, global::System.Convert.ToString);
- }
- if (content.Contains("HighAvailabilityConfigHighAvailabilityType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).HighAvailabilityConfigHighAvailabilityType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType) content.GetValueForProperty("HighAvailabilityConfigHighAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).HighAvailabilityConfigHighAvailabilityType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType.CreateFrom);
- }
- if (content.Contains("StorageConfigurationTransportFileShareConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).StorageConfigurationTransportFileShareConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfiguration) content.GetValueForProperty("StorageConfigurationTransportFileShareConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).StorageConfigurationTransportFileShareConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.FileShareConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("TransportFileShareConfigurationType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).TransportFileShareConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType) content.GetValueForProperty("TransportFileShareConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).TransportFileShareConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType.CreateFrom);
- }
- if (content.Contains("CustomResourceNameNamingPatternType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CustomResourceNameNamingPatternType = (string) content.GetValueForProperty("CustomResourceNameNamingPatternType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CustomResourceNameNamingPatternType, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationImageReferencePublisher"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferencePublisher = (string) content.GetValueForProperty("CentralServerVirtualMachineConfigurationImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferencePublisher, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationImageReferenceOffer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferenceOffer = (string) content.GetValueForProperty("CentralServerVirtualMachineConfigurationImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferenceOffer, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationImageReferenceSku"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferenceSku = (string) content.GetValueForProperty("CentralServerVirtualMachineConfigurationImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferenceSku, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationImageReferenceVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferenceVersion = (string) content.GetValueForProperty("CentralServerVirtualMachineConfigurationImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferenceVersion, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationOSProfileOSConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileOSConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("CentralServerVirtualMachineConfigurationOSProfileOSConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileOSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationImageReferencePublisher"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferencePublisher = (string) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferencePublisher, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationImageReferenceOffer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferenceOffer = (string) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferenceOffer, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationImageReferenceSku"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferenceSku = (string) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferenceSku, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationImageReferenceVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferenceVersion = (string) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferenceVersion, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationOSProfileOSConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileOSConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationOSProfileOSConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileOSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationImageReferencePublisher"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferencePublisher = (string) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferencePublisher, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationImageReferenceOffer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferenceOffer = (string) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferenceOffer, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationImageReferenceSku"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferenceSku = (string) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferenceSku, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationImageReferenceVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferenceVersion = (string) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferenceVersion, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationOSProfileOSConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileOSConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationOSProfileOSConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileOSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DiskConfigurationDiskVolumeConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DiskConfigurationDiskVolumeConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations) content.GetValueForProperty("DiskConfigurationDiskVolumeConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DiskConfigurationDiskVolumeConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationDiskVolumeConfigurationsTypeConverter.ConvertFrom);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationOSProfileAdminUsername"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileAdminUsername = (string) content.GetValueForProperty("CentralServerVirtualMachineConfigurationOSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileAdminUsername, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationOSProfileAdminPassword"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileAdminPassword = (string) content.GetValueForProperty("CentralServerVirtualMachineConfigurationOSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileAdminPassword, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationOSProfileOSConfigurationOSType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileOSConfigurationOSType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("CentralServerVirtualMachineConfigurationOSProfileOSConfigurationOSType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileOSConfigurationOSType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationOSProfileAdminUsername"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileAdminUsername = (string) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationOSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileAdminUsername, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationOSProfileAdminPassword"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileAdminPassword = (string) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationOSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileAdminPassword, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationOSProfileOSConfigurationOSType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileOSConfigurationOSType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationOSProfileOSConfigurationOSType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileOSConfigurationOSType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationOSProfileAdminUsername"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileAdminUsername = (string) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationOSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileAdminUsername, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationOSProfileAdminPassword"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileAdminPassword = (string) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationOSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileAdminPassword, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationOSProfileOSConfigurationOSType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileOSConfigurationOSType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationOSProfileOSConfigurationOSType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileOSConfigurationOSType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
- }
- AfterDeserializeDictionary(content);
- }
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Management.Automation.PSObject content that should be used.
- internal ThreeTierConfiguration(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("NetworkConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).NetworkConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfiguration) content.GetValueForProperty("NetworkConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).NetworkConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.NetworkConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("CentralServer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfiguration) content.GetValueForProperty("CentralServer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CentralServerConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("ApplicationServer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfiguration) content.GetValueForProperty("ApplicationServer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseServer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfiguration) content.GetValueForProperty("DatabaseServer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DatabaseConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("HighAvailabilityConfig"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).HighAvailabilityConfig = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfiguration) content.GetValueForProperty("HighAvailabilityConfig",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).HighAvailabilityConfig, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.HighAvailabilityConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("StorageConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).StorageConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageConfiguration) content.GetValueForProperty("StorageConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).StorageConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.StorageConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("CustomResourceName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CustomResourceName = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierCustomResourceNames) content.GetValueForProperty("CustomResourceName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CustomResourceName, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ThreeTierCustomResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("DeploymentType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).DeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("DeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).DeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
- }
- if (content.Contains("AppResourceGroup"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).AppResourceGroup = (string) content.GetValueForProperty("AppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).AppResourceGroup, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerDiskConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerDiskConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration) content.GetValueForProperty("DatabaseServerDiskConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerDiskConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("NetworkConfigurationIsSecondaryIPEnabled"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).NetworkConfigurationIsSecondaryIPEnabled = (bool?) content.GetValueForProperty("NetworkConfigurationIsSecondaryIPEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).NetworkConfigurationIsSecondaryIPEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
- }
- if (content.Contains("CentralServerVirtualMachineConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration) content.GetValueForProperty("CentralServerVirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("CentralServerSubnetId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerSubnetId = (string) content.GetValueForProperty("CentralServerSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerSubnetId, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerInstanceCount"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerInstanceCount = (long) content.GetValueForProperty("CentralServerInstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerInstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationImageReference"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference) content.GetValueForProperty("CentralServerVirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationOSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile) content.GetValueForProperty("CentralServerVirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationVMSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("CentralServerVirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationVMSize, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration) content.GetValueForProperty("ApplicationServerVirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("ApplicationServerSubnetId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerSubnetId = (string) content.GetValueForProperty("ApplicationServerSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerSubnetId, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerInstanceCount"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerInstanceCount = (long) content.GetValueForProperty("ApplicationServerInstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerInstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationImageReference"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationOSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationVMSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationVMSize, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration) content.GetValueForProperty("DatabaseServerVirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseServerDatabaseType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerDatabaseType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType?) content.GetValueForProperty("DatabaseServerDatabaseType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerDatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType.CreateFrom);
- }
- if (content.Contains("DatabaseServerSubnetId"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerSubnetId = (string) content.GetValueForProperty("DatabaseServerSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerSubnetId, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerInstanceCount"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerInstanceCount = (long) content.GetValueForProperty("DatabaseServerInstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerInstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationImageReference"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ImageReferenceTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationOSProfile"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSProfileTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationVMSize"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationVMSize, global::System.Convert.ToString);
- }
- if (content.Contains("HighAvailabilityConfigHighAvailabilityType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).HighAvailabilityConfigHighAvailabilityType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType) content.GetValueForProperty("HighAvailabilityConfigHighAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).HighAvailabilityConfigHighAvailabilityType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType.CreateFrom);
- }
- if (content.Contains("StorageConfigurationTransportFileShareConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).StorageConfigurationTransportFileShareConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfiguration) content.GetValueForProperty("StorageConfigurationTransportFileShareConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).StorageConfigurationTransportFileShareConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.FileShareConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("TransportFileShareConfigurationType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).TransportFileShareConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType) content.GetValueForProperty("TransportFileShareConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).TransportFileShareConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType.CreateFrom);
- }
- if (content.Contains("CustomResourceNameNamingPatternType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CustomResourceNameNamingPatternType = (string) content.GetValueForProperty("CustomResourceNameNamingPatternType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CustomResourceNameNamingPatternType, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationImageReferencePublisher"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferencePublisher = (string) content.GetValueForProperty("CentralServerVirtualMachineConfigurationImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferencePublisher, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationImageReferenceOffer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferenceOffer = (string) content.GetValueForProperty("CentralServerVirtualMachineConfigurationImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferenceOffer, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationImageReferenceSku"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferenceSku = (string) content.GetValueForProperty("CentralServerVirtualMachineConfigurationImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferenceSku, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationImageReferenceVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferenceVersion = (string) content.GetValueForProperty("CentralServerVirtualMachineConfigurationImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationImageReferenceVersion, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationOSProfileOSConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileOSConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("CentralServerVirtualMachineConfigurationOSProfileOSConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileOSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationImageReferencePublisher"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferencePublisher = (string) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferencePublisher, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationImageReferenceOffer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferenceOffer = (string) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferenceOffer, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationImageReferenceSku"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferenceSku = (string) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferenceSku, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationImageReferenceVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferenceVersion = (string) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationImageReferenceVersion, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationOSProfileOSConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileOSConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationOSProfileOSConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileOSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationImageReferencePublisher"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferencePublisher = (string) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferencePublisher, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationImageReferenceOffer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferenceOffer = (string) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferenceOffer, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationImageReferenceSku"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferenceSku = (string) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferenceSku, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationImageReferenceVersion"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferenceVersion = (string) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationImageReferenceVersion, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationOSProfileOSConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileOSConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationOSProfileOSConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileOSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
- }
- if (content.Contains("DiskConfigurationDiskVolumeConfiguration"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DiskConfigurationDiskVolumeConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations) content.GetValueForProperty("DiskConfigurationDiskVolumeConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DiskConfigurationDiskVolumeConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationDiskVolumeConfigurationsTypeConverter.ConvertFrom);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationOSProfileAdminUsername"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileAdminUsername = (string) content.GetValueForProperty("CentralServerVirtualMachineConfigurationOSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileAdminUsername, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationOSProfileAdminPassword"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileAdminPassword = (string) content.GetValueForProperty("CentralServerVirtualMachineConfigurationOSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileAdminPassword, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerVirtualMachineConfigurationOSProfileOSConfigurationOSType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileOSConfigurationOSType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("CentralServerVirtualMachineConfigurationOSProfileOSConfigurationOSType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).CentralServerVirtualMachineConfigurationOSProfileOSConfigurationOSType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationOSProfileAdminUsername"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileAdminUsername = (string) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationOSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileAdminUsername, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationOSProfileAdminPassword"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileAdminPassword = (string) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationOSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileAdminPassword, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachineConfigurationOSProfileOSConfigurationOSType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileOSConfigurationOSType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("ApplicationServerVirtualMachineConfigurationOSProfileOSConfigurationOSType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).ApplicationServerVirtualMachineConfigurationOSProfileOSConfigurationOSType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationOSProfileAdminUsername"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileAdminUsername = (string) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationOSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileAdminUsername, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationOSProfileAdminPassword"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileAdminPassword = (string) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationOSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileAdminPassword, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerVirtualMachineConfigurationOSProfileOSConfigurationOSType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileOSConfigurationOSType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("DatabaseServerVirtualMachineConfigurationOSProfileOSConfigurationOSType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierConfigurationInternal)this).DatabaseServerVirtualMachineConfigurationOSProfileOSConfigurationOSType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
- }
- 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.Workloads.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();
- }
- }
- /// Gets or sets the three tier SAP configuration. For prerequisites for creating the infrastructure, please see [here](https://go.microsoft.com/fwlink/?linkid=2212611&clcid=0x409)
- [System.ComponentModel.TypeConverter(typeof(ThreeTierConfigurationTypeConverter))]
- public partial interface IThreeTierConfiguration
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ThreeTierFullResourceNames.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ThreeTierFullResourceNames.PowerShell.cs
deleted file mode 100644
index dc350a48078d..000000000000
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ThreeTierFullResourceNames.PowerShell.cs
+++ /dev/null
@@ -1,346 +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.Workloads.Models.Api20230401
-{
- using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
-
- ///
- /// The resource name object where the specified values will be full resource names of the corresponding resources in a three
- /// tier SAP system.
- ///
- [System.ComponentModel.TypeConverter(typeof(ThreeTierFullResourceNamesTypeConverter))]
- public partial class ThreeTierFullResourceNames
- {
-
- ///
- /// 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.Workloads.Models.Api20230401.IThreeTierFullResourceNames DeserializeFromDictionary(global::System.Collections.IDictionary content)
- {
- return new ThreeTierFullResourceNames(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.Workloads.Models.Api20230401.IThreeTierFullResourceNames DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
- {
- return new ThreeTierFullResourceNames(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.Workloads.Models.Api20230401.IThreeTierFullResourceNames FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
-
- ///
- /// Deserializes a into a new instance of .
- ///
- /// The global::System.Collections.IDictionary content that should be used.
- internal ThreeTierFullResourceNames(global::System.Collections.IDictionary content)
- {
- bool returnNow = false;
- BeforeDeserializeDictionary(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("CentralServer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNames) content.GetValueForProperty("CentralServer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CentralServerFullResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("ApplicationServer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).ApplicationServer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNames) content.GetValueForProperty("ApplicationServer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).ApplicationServer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerFullResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseServer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNames) content.GetValueForProperty("DatabaseServer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DatabaseServerFullResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("SharedStorage"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).SharedStorage = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISharedStorageResourceNames) content.GetValueForProperty("SharedStorage",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).SharedStorage, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SharedStorageResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("NamingPatternType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierCustomResourceNamesInternal)this).NamingPatternType = (string) content.GetValueForProperty("NamingPatternType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierCustomResourceNamesInternal)this).NamingPatternType, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerLoadBalancer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames) content.GetValueForProperty("CentralServerLoadBalancer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("CentralServerVirtualMachine"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerVirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[]) content.GetValueForProperty("CentralServerVirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerVirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
- }
- if (content.Contains("CentralServerAvailabilitySetName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerAvailabilitySetName = (string) content.GetValueForProperty("CentralServerAvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerAvailabilitySetName, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachine"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).ApplicationServerVirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[]) content.GetValueForProperty("ApplicationServerVirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).ApplicationServerVirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
- }
- if (content.Contains("ApplicationServerAvailabilitySetName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).ApplicationServerAvailabilitySetName = (string) content.GetValueForProperty("ApplicationServerAvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).ApplicationServerAvailabilitySetName, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerLoadBalancer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames) content.GetValueForProperty("DatabaseServerLoadBalancer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseServerVirtualMachine"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerVirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[]) content.GetValueForProperty("DatabaseServerVirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerVirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
- }
- if (content.Contains("DatabaseServerAvailabilitySetName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerAvailabilitySetName = (string) content.GetValueForProperty("DatabaseServerAvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerAvailabilitySetName, global::System.Convert.ToString);
- }
- if (content.Contains("SharedStorageAccountName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).SharedStorageAccountName = (string) content.GetValueForProperty("SharedStorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).SharedStorageAccountName, global::System.Convert.ToString);
- }
- if (content.Contains("SharedStorageAccountPrivateEndPointName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).SharedStorageAccountPrivateEndPointName = (string) content.GetValueForProperty("SharedStorageAccountPrivateEndPointName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).SharedStorageAccountPrivateEndPointName, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerLoadBalancerName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerName = (string) content.GetValueForProperty("CentralServerLoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerName, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerLoadBalancerFrontendIPConfigurationName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerFrontendIPConfigurationName = (string[]) content.GetValueForProperty("CentralServerLoadBalancerFrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerFrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- }
- if (content.Contains("CentralServerLoadBalancerBackendPoolName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerBackendPoolName = (string[]) content.GetValueForProperty("CentralServerLoadBalancerBackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerBackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- }
- if (content.Contains("CentralServerLoadBalancerHealthProbeName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerHealthProbeName = (string[]) content.GetValueForProperty("CentralServerLoadBalancerHealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerHealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- }
- if (content.Contains("DatabaseServerLoadBalancerName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerName = (string) content.GetValueForProperty("DatabaseServerLoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerName, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerLoadBalancerFrontendIPConfigurationName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerFrontendIPConfigurationName = (string[]) content.GetValueForProperty("DatabaseServerLoadBalancerFrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerFrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- }
- if (content.Contains("DatabaseServerLoadBalancerBackendPoolName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerBackendPoolName = (string[]) content.GetValueForProperty("DatabaseServerLoadBalancerBackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerBackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- }
- if (content.Contains("DatabaseServerLoadBalancerHealthProbeName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerHealthProbeName = (string[]) content.GetValueForProperty("DatabaseServerLoadBalancerHealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerHealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, 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 ThreeTierFullResourceNames(global::System.Management.Automation.PSObject content)
- {
- bool returnNow = false;
- BeforeDeserializePSObject(content, ref returnNow);
- if (returnNow)
- {
- return;
- }
- // actually deserialize
- if (content.Contains("CentralServer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNames) content.GetValueForProperty("CentralServer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.CentralServerFullResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("ApplicationServer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).ApplicationServer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNames) content.GetValueForProperty("ApplicationServer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).ApplicationServer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerFullResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseServer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNames) content.GetValueForProperty("DatabaseServer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DatabaseServerFullResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("SharedStorage"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).SharedStorage = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISharedStorageResourceNames) content.GetValueForProperty("SharedStorage",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).SharedStorage, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SharedStorageResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("NamingPatternType"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierCustomResourceNamesInternal)this).NamingPatternType = (string) content.GetValueForProperty("NamingPatternType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierCustomResourceNamesInternal)this).NamingPatternType, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerLoadBalancer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames) content.GetValueForProperty("CentralServerLoadBalancer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("CentralServerVirtualMachine"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerVirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[]) content.GetValueForProperty("CentralServerVirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerVirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
- }
- if (content.Contains("CentralServerAvailabilitySetName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerAvailabilitySetName = (string) content.GetValueForProperty("CentralServerAvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerAvailabilitySetName, global::System.Convert.ToString);
- }
- if (content.Contains("ApplicationServerVirtualMachine"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).ApplicationServerVirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[]) content.GetValueForProperty("ApplicationServerVirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).ApplicationServerVirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
- }
- if (content.Contains("ApplicationServerAvailabilitySetName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).ApplicationServerAvailabilitySetName = (string) content.GetValueForProperty("ApplicationServerAvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).ApplicationServerAvailabilitySetName, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerLoadBalancer"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames) content.GetValueForProperty("DatabaseServerLoadBalancer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNamesTypeConverter.ConvertFrom);
- }
- if (content.Contains("DatabaseServerVirtualMachine"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerVirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[]) content.GetValueForProperty("DatabaseServerVirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerVirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
- }
- if (content.Contains("DatabaseServerAvailabilitySetName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerAvailabilitySetName = (string) content.GetValueForProperty("DatabaseServerAvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerAvailabilitySetName, global::System.Convert.ToString);
- }
- if (content.Contains("SharedStorageAccountName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).SharedStorageAccountName = (string) content.GetValueForProperty("SharedStorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).SharedStorageAccountName, global::System.Convert.ToString);
- }
- if (content.Contains("SharedStorageAccountPrivateEndPointName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).SharedStorageAccountPrivateEndPointName = (string) content.GetValueForProperty("SharedStorageAccountPrivateEndPointName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).SharedStorageAccountPrivateEndPointName, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerLoadBalancerName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerName = (string) content.GetValueForProperty("CentralServerLoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerName, global::System.Convert.ToString);
- }
- if (content.Contains("CentralServerLoadBalancerFrontendIPConfigurationName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerFrontendIPConfigurationName = (string[]) content.GetValueForProperty("CentralServerLoadBalancerFrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerFrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- }
- if (content.Contains("CentralServerLoadBalancerBackendPoolName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerBackendPoolName = (string[]) content.GetValueForProperty("CentralServerLoadBalancerBackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerBackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- }
- if (content.Contains("CentralServerLoadBalancerHealthProbeName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerHealthProbeName = (string[]) content.GetValueForProperty("CentralServerLoadBalancerHealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).CentralServerLoadBalancerHealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- }
- if (content.Contains("DatabaseServerLoadBalancerName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerName = (string) content.GetValueForProperty("DatabaseServerLoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerName, global::System.Convert.ToString);
- }
- if (content.Contains("DatabaseServerLoadBalancerFrontendIPConfigurationName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerFrontendIPConfigurationName = (string[]) content.GetValueForProperty("DatabaseServerLoadBalancerFrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerFrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- }
- if (content.Contains("DatabaseServerLoadBalancerBackendPoolName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerBackendPoolName = (string[]) content.GetValueForProperty("DatabaseServerLoadBalancerBackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerBackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
- }
- if (content.Contains("DatabaseServerLoadBalancerHealthProbeName"))
- {
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerHealthProbeName = (string[]) content.GetValueForProperty("DatabaseServerLoadBalancerHealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IThreeTierFullResourceNamesInternal)this).DatabaseServerLoadBalancerHealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, 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.Workloads.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 resource name object where the specified values will be full resource names of the corresponding resources in a three
- /// tier SAP system.
- [System.ComponentModel.TypeConverter(typeof(ThreeTierFullResourceNamesTypeConverter))]
- public partial interface IThreeTierFullResourceNames
-
- {
-
- }
-}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateMonitorRequest.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateMonitorRequest.PowerShell.cs
index 5a9c6c731645..fea8fea5955a 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateMonitorRequest.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateMonitorRequest.PowerShell.cs
@@ -128,7 +128,7 @@ internal UpdateMonitorRequest(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Identity"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGeneratedTypeConverter.ConvertFrom);
}
if (content.Contains("Tag"))
{
@@ -140,7 +140,7 @@ internal UpdateMonitorRequest(global::System.Collections.IDictionary content)
}
if (content.Contains("IdentityUserAssignedIdentity"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentities1TypeConverter.ConvertFrom);
}
AfterDeserializeDictionary(content);
}
@@ -161,7 +161,7 @@ internal UpdateMonitorRequest(global::System.Management.Automation.PSObject cont
// actually deserialize
if (content.Contains("Identity"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGeneratedTypeConverter.ConvertFrom);
}
if (content.Contains("Tag"))
{
@@ -173,7 +173,7 @@ internal UpdateMonitorRequest(global::System.Management.Automation.PSObject cont
}
if (content.Contains("IdentityUserAssignedIdentity"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentitiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentities1TypeConverter.ConvertFrom);
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateMonitorRequest.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateMonitorRequest.cs
index f3869c4df83f..5c7d27f9595a 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateMonitorRequest.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateMonitorRequest.cs
@@ -14,22 +14,22 @@ public partial class UpdateMonitorRequest :
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity _identity;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated _identity;
/// [currently not in use] Managed service identity(user assigned identities)
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentity()); set => this._identity = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGenerated()); set => this._identity = value; }
/// Type of manage identity
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType)""); }
/// User assigned identities dictionary
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1 IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; }
/// Internal Acessors for Identity
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentity()); set { {_identity = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGenerated()); set { {_identity = value;} } }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestTags _tag;
@@ -62,8 +62,8 @@ public partial interface IUpdateMonitorRequest :
ReadOnly = false,
Description = @"User assigned identities dictionary",
SerializedName = @"userAssignedIdentities",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1 IdentityUserAssignedIdentity { get; set; }
/// Gets or sets the Resource tags.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
@@ -79,11 +79,11 @@ internal partial interface IUpdateMonitorRequestInternal
{
/// [currently not in use] Managed service identity(user assigned identities)
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity Identity { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated Identity { get; set; }
/// Type of manage identity
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType? IdentityType { get; set; }
/// User assigned identities dictionary
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1 IdentityUserAssignedIdentity { get; set; }
/// Gets or sets the Resource tags.
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateMonitorRequestTags Tag { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateMonitorRequest.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateMonitorRequest.json.cs
index b50c8b0389b5..0a98843dcce0 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateMonitorRequest.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateMonitorRequest.json.cs
@@ -102,7 +102,7 @@ internal UpdateMonitorRequest(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runti
{
return;
}
- {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentity.FromJson(__jsonIdentity) : Identity;}
+ {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentityAutoGenerated.FromJson(__jsonIdentity) : Identity;}
{_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UpdateMonitorRequestTags.FromJson(__jsonTags) : Tag;}
AfterFromJson(json);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateSapVirtualInstanceRequest.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateSapVirtualInstanceRequest.cs
deleted file mode 100644
index 2103b23bce05..000000000000
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UpdateSapVirtualInstanceRequest.cs
+++ /dev/null
@@ -1,97 +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.Workloads.Models.Api20230401
-{
- using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
-
- /// Defines the request body for updating Virtual Instance for SAP.
- public partial class UpdateSapVirtualInstanceRequest :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapVirtualInstanceRequest,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapVirtualInstanceRequestInternal
- {
-
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity _identity;
-
- ///
- /// A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit
- /// the ACSS how-to-guide.
- ///
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentity()); set => this._identity = value; }
-
- /// Type of manage identity
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType)""); }
-
- /// User assigned identities dictionary
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; }
-
- /// Internal Acessors for Identity
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapVirtualInstanceRequestInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UserAssignedServiceIdentity()); set { {_identity = value;} } }
-
- /// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapVirtualInstanceRequestTags _tag;
-
- /// Gets or sets the Resource tags.
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapVirtualInstanceRequestTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.UpdateSapVirtualInstanceRequestTags()); set => this._tag = value; }
-
- /// Creates an new instance.
- public UpdateSapVirtualInstanceRequest()
- {
-
- }
- }
- /// Defines the request body for updating Virtual Instance for SAP.
- public partial interface IUpdateSapVirtualInstanceRequest :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable
- {
- /// Type of manage identity
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Type of manage identity",
- SerializedName = @"type",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType? IdentityType { get; set; }
- /// User assigned identities dictionary
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"User assigned identities dictionary",
- SerializedName = @"userAssignedIdentities",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; }
- /// Gets or sets the Resource tags.
- [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
- Required = false,
- ReadOnly = false,
- Description = @"Gets or sets the Resource tags.",
- SerializedName = @"tags",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapVirtualInstanceRequestTags) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapVirtualInstanceRequestTags Tag { get; set; }
-
- }
- /// Defines the request body for updating Virtual Instance for SAP.
- internal partial interface IUpdateSapVirtualInstanceRequestInternal
-
- {
- ///
- /// A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit
- /// the ACSS how-to-guide.
- ///
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentity Identity { get; set; }
- /// Type of manage identity
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType? IdentityType { get; set; }
- /// User assigned identities dictionary
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities IdentityUserAssignedIdentity { get; set; }
- /// Gets or sets the Resource tags.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUpdateSapVirtualInstanceRequestTags Tag { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentityAutoGenerated.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentityAutoGenerated.PowerShell.cs
new file mode 100644
index 000000000000..26dcf5db76d7
--- /dev/null
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentityAutoGenerated.PowerShell.cs
@@ -0,0 +1,181 @@
+// 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.Workloads.Models.Api20230401
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
+
+ ///
+ /// A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit
+ /// the ACSS how-to-guide.
+ ///
+ [System.ComponentModel.TypeConverter(typeof(UserAssignedServiceIdentityAutoGeneratedTypeConverter))]
+ public partial class UserAssignedServiceIdentityAutoGenerated
+ {
+
+ ///
+ /// 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.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new UserAssignedServiceIdentityAutoGenerated(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.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new UserAssignedServiceIdentityAutoGenerated(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.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.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 UserAssignedServiceIdentityAutoGenerated(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("Type"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType.CreateFrom);
+ }
+ if (content.Contains("UserAssignedIdentity"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentities1TypeConverter.ConvertFrom);
+ }
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal UserAssignedServiceIdentityAutoGenerated(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("Type"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType.CreateFrom);
+ }
+ if (content.Contains("UserAssignedIdentity"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentities1TypeConverter.ConvertFrom);
+ }
+ AfterDeserializePSObject(content);
+ }
+ }
+ /// A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit
+ /// the ACSS how-to-guide.
+ [System.ComponentModel.TypeConverter(typeof(UserAssignedServiceIdentityAutoGeneratedTypeConverter))]
+ public partial interface IUserAssignedServiceIdentityAutoGenerated
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentityAutoGenerated.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentityAutoGenerated.TypeConverter.cs
new file mode 100644
index 000000000000..74b03700de7c
--- /dev/null
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentityAutoGenerated.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.Workloads.Models.Api20230401
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
+
+ ///
+ /// A PowerShell PSTypeConverter to support converting to an instance of
+ ///
+ public partial class UserAssignedServiceIdentityAutoGeneratedTypeConverter : 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.Workloads.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated ConvertFrom(dynamic sourceValue)
+ {
+ if (null == sourceValue)
+ {
+ return null;
+ }
+ global::System.Type type = sourceValue.GetType();
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated).IsAssignableFrom(type))
+ {
+ return sourceValue;
+ }
+ try
+ {
+ return UserAssignedServiceIdentityAutoGenerated.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());;
+ }
+ catch
+ {
+ // Unable to use JSON pattern
+ }
+ if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type))
+ {
+ return UserAssignedServiceIdentityAutoGenerated.DeserializeFromPSObject(sourceValue);
+ }
+ if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type))
+ {
+ return UserAssignedServiceIdentityAutoGenerated.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/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentityAutoGenerated.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentityAutoGenerated.cs
new file mode 100644
index 000000000000..2ace68f07260
--- /dev/null
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentityAutoGenerated.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.Workloads.Models.Api20230401
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
+
+ ///
+ /// A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit
+ /// the ACSS how-to-guide.
+ ///
+ public partial class UserAssignedServiceIdentityAutoGenerated :
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGeneratedInternal
+ {
+
+ /// Backing field for property.
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType _type;
+
+ /// Type of manage identity
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType Type { get => this._type; set => this._type = value; }
+
+ /// Backing field for property.
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1 _userAssignedIdentity;
+
+ /// User assigned identities dictionary
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1 UserAssignedIdentity { get => (this._userAssignedIdentity = this._userAssignedIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentities1()); set => this._userAssignedIdentity = value; }
+
+ ///
+ /// Creates an new instance.
+ ///
+ public UserAssignedServiceIdentityAutoGenerated()
+ {
+
+ }
+ }
+ /// A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit
+ /// the ACSS how-to-guide.
+ public partial interface IUserAssignedServiceIdentityAutoGenerated :
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable
+ {
+ /// Type of manage identity
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
+ Required = true,
+ ReadOnly = false,
+ Description = @"Type of manage identity",
+ SerializedName = @"type",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType Type { get; set; }
+ /// User assigned identities dictionary
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"User assigned identities dictionary",
+ SerializedName = @"userAssignedIdentities",
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1 UserAssignedIdentity { get; set; }
+
+ }
+ /// A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit
+ /// the ACSS how-to-guide.
+ internal partial interface IUserAssignedServiceIdentityAutoGeneratedInternal
+
+ {
+ /// Type of manage identity
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ManagedServiceIdentityType Type { get; set; }
+ /// User assigned identities dictionary
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IUserAssignedIdentities1 UserAssignedIdentity { get; set; }
+
+ }
+}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentityAutoGenerated.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentityAutoGenerated.json.cs
new file mode 100644
index 000000000000..25205b71e727
--- /dev/null
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/UserAssignedServiceIdentityAutoGenerated.json.cs
@@ -0,0 +1,115 @@
+// 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.Workloads.Models.Api20230401
+{
+ using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
+
+ ///
+ /// A pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit
+ /// the ACSS how-to-guide.
+ ///
+ public partial class UserAssignedServiceIdentityAutoGenerated
+ {
+
+ ///
+ /// 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.Workloads.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.Workloads.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.Workloads.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.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
+
+ ///
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated.
+ ///
+ /// a to deserialize from.
+ ///
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated.
+ ///
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IUserAssignedServiceIdentityAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ {
+ return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new UserAssignedServiceIdentityAutoGenerated(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.Workloads.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.SerializationMode serializationMode)
+ {
+ container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject();
+
+ bool returnNow = false;
+ BeforeToJson(ref container, ref returnNow);
+ if (returnNow)
+ {
+ return container;
+ }
+ AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add );
+ AddIf( null != this._userAssignedIdentity ? (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode) this._userAssignedIdentity.ToJson(null,serializationMode) : null, "userAssignedIdentities" ,container.Add );
+ AfterToJson(ref container);
+ return container;
+ }
+
+ ///
+ /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject into a new instance of .
+ ///
+ /// A Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject instance to deserialize from.
+ internal UserAssignedServiceIdentityAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json)
+ {
+ bool returnNow = false;
+ BeforeFromJson(json, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;}
+ {_userAssignedIdentity = If( json?.PropertyT("userAssignedIdentities"), out var __jsonUserAssignedIdentities) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.UserAssignedIdentities1.FromJson(__jsonUserAssignedIdentities) : UserAssignedIdentity;}
+ AfterFromJson(json);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerConfiguration.PowerShell.cs
new file mode 100644
index 000000000000..76849c298398
--- /dev/null
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerConfiguration.PowerShell.cs
@@ -0,0 +1,278 @@
+// 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.Workloads.Models.Api20231001Preview
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
+
+ /// Gets or sets the application server configuration.
+ [System.ComponentModel.TypeConverter(typeof(ApplicationServerConfigurationTypeConverter))]
+ public partial class ApplicationServerConfiguration
+ {
+
+ ///
+ /// 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 a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal ApplicationServerConfiguration(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("VirtualMachineConfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration) content.GetValueForProperty("VirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfigurationTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SubnetId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).SubnetId, global::System.Convert.ToString);
+ }
+ if (content.Contains("InstanceCount"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).InstanceCount = (long) content.GetValueForProperty("InstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).InstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ if (content.Contains("VirtualMachineConfigurationImageReference"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("VirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("VirtualMachineConfigurationOSProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile) content.GetValueForProperty("VirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("VirtualMachineConfigurationVMSize"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("VirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationVMSize, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferencePublisher"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferencePublisher = (string) content.GetValueForProperty("ImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferencePublisher, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceOffer"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceOffer = (string) content.GetValueForProperty("ImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceOffer, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceSku"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceSku = (string) content.GetValueForProperty("ImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceSku, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceVersion"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceVersion, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceId, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileOsconfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSProfileOsconfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration) content.GetValueForProperty("OSProfileOsconfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSProfileOsconfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfigurationTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("OSProfileAdminUsername"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSProfileAdminUsername = (string) content.GetValueForProperty("OSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSProfileAdminUsername, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileAdminPassword"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSProfileAdminPassword = (string) content.GetValueForProperty("OSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSProfileAdminPassword, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSConfigurationOstype"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
+ }
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal ApplicationServerConfiguration(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("VirtualMachineConfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration) content.GetValueForProperty("VirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfigurationTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SubnetId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).SubnetId, global::System.Convert.ToString);
+ }
+ if (content.Contains("InstanceCount"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).InstanceCount = (long) content.GetValueForProperty("InstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).InstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ if (content.Contains("VirtualMachineConfigurationImageReference"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("VirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("VirtualMachineConfigurationOSProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile) content.GetValueForProperty("VirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("VirtualMachineConfigurationVMSize"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("VirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).VirtualMachineConfigurationVMSize, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferencePublisher"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferencePublisher = (string) content.GetValueForProperty("ImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferencePublisher, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceOffer"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceOffer = (string) content.GetValueForProperty("ImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceOffer, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceSku"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceSku = (string) content.GetValueForProperty("ImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceSku, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceVersion"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceVersion, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).ImageReferenceId, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileOsconfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSProfileOsconfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration) content.GetValueForProperty("OSProfileOsconfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSProfileOsconfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfigurationTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("OSProfileAdminUsername"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSProfileAdminUsername = (string) content.GetValueForProperty("OSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSProfileAdminUsername, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileAdminPassword"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSProfileAdminPassword = (string) content.GetValueForProperty("OSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSProfileAdminPassword, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSConfigurationOstype"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
+ }
+ 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.Workloads.Models.Api20231001Preview.IApplicationServerConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new ApplicationServerConfiguration(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.Workloads.Models.Api20231001Preview.IApplicationServerConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new ApplicationServerConfiguration(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.Workloads.Models.Api20231001Preview.IApplicationServerConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.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();
+ }
+ }
+ /// Gets or sets the application server configuration.
+ [System.ComponentModel.TypeConverter(typeof(ApplicationServerConfigurationTypeConverter))]
+ public partial interface IApplicationServerConfiguration
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerConfiguration.TypeConverter.cs
index 7dce7dade886..442a142ea994 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerConfiguration.cs
similarity index 72%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerConfiguration.cs
index 050639f9689b..172b23043cdc 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerConfiguration.cs
@@ -3,29 +3,36 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Gets or sets the application server configuration.
public partial class ApplicationServerConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal
{
+ ///
+ /// Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to
+ /// provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
+ public string ImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceId = value ?? null; }
+
///
/// Specifies the offer of the platform image or marketplace image used to create the virtual machine.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string ImageReferenceOffer { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceOffer; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceOffer = value ?? null; }
+ public string ImageReferenceOffer { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceOffer; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceOffer = value ?? null; }
/// The image publisher.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string ImageReferencePublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferencePublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferencePublisher = value ?? null; }
+ public string ImageReferencePublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferencePublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferencePublisher = value ?? null; }
/// The image SKU.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string ImageReferenceSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceSku = value ?? null; }
+ public string ImageReferenceSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceSku = value ?? null; }
///
/// Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats
@@ -34,7 +41,7 @@ public partial class ApplicationServerConfiguration :
/// time even if a new version becomes available.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string ImageReferenceVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceVersion = value ?? null; }
+ public string ImageReferenceVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceVersion = value ?? null; }
/// Backing field for property.
private long _instanceCount;
@@ -44,20 +51,20 @@ public partial class ApplicationServerConfiguration :
public long InstanceCount { get => this._instanceCount; set => this._instanceCount = value; }
/// Internal Acessors for OSProfileOsconfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal.OSProfileOsconfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileOsconfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileOsconfiguration = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal.OSProfileOsconfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileOsconfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileOsconfiguration = value; }
/// Internal Acessors for VirtualMachineConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal.VirtualMachineConfiguration { get => (this._virtualMachineConfiguration = this._virtualMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfiguration()); set { {_virtualMachineConfiguration = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal.VirtualMachineConfiguration { get => (this._virtualMachineConfiguration = this._virtualMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfiguration()); set { {_virtualMachineConfiguration = value;} } }
/// Internal Acessors for VirtualMachineConfigurationImageReference
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal.VirtualMachineConfigurationImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReference = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal.VirtualMachineConfigurationImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReference = value; }
/// Internal Acessors for VirtualMachineConfigurationOSProfile
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfigurationInternal.VirtualMachineConfigurationOSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfile = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfigurationInternal.VirtualMachineConfigurationOSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfile = value; }
/// The OS Type
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType? OSConfigurationOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSConfigurationOstype; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSConfigurationOstype = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType? OSConfigurationOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSConfigurationOstype; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSConfigurationOstype = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType)""); }
///
/// Specifies the password of the administrator account.
**Minimum-length (Windows):** 8 characters
**Minimum-length
@@ -70,7 +77,7 @@ public partial class ApplicationServerConfiguration :
/// Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string OSProfileAdminPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminPassword = value ?? null; }
+ public string OSProfileAdminPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminPassword = value ?? null; }
///
/// Specifies the name of the administrator account.
This property cannot be updated after the VM is created.
@@ -81,7 +88,7 @@ public partial class ApplicationServerConfiguration :
/// (Windows):** 20 characters.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string OSProfileAdminUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminUsername = value ?? null; }
+ public string OSProfileAdminUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminUsername = value ?? null; }
/// Backing field for property.
private string _subnetId;
@@ -91,15 +98,15 @@ public partial class ApplicationServerConfiguration :
public string SubnetId { get => this._subnetId; set => this._subnetId = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration _virtualMachineConfiguration;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration _virtualMachineConfiguration;
/// Gets or sets the virtual machine configuration.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration VirtualMachineConfiguration { get => (this._virtualMachineConfiguration = this._virtualMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfiguration()); set => this._virtualMachineConfiguration = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration VirtualMachineConfiguration { get => (this._virtualMachineConfiguration = this._virtualMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfiguration()); set => this._virtualMachineConfiguration = value; }
/// The virtual machine size.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string VirtualMachineConfigurationVMSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).VMSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).VMSize = value ; }
+ public string VirtualMachineConfigurationVMSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).VMSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).VMSize = value ; }
/// Creates an new instance.
public ApplicationServerConfiguration()
@@ -111,6 +118,17 @@ public ApplicationServerConfiguration()
public partial interface IApplicationServerConfiguration :
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable
{
+ ///
+ /// Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to
+ /// provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.",
+ SerializedName = @"id",
+ PossibleTypes = new [] { typeof(string) })]
+ string ImageReferenceId { get; set; }
///
/// Specifies the offer of the platform image or marketplace image used to create the virtual machine.
///
@@ -220,6 +238,11 @@ public partial interface IApplicationServerConfiguration :
internal partial interface IApplicationServerConfigurationInternal
{
+ ///
+ /// Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to
+ /// provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.
+ ///
+ string ImageReferenceId { get; set; }
///
/// Specifies the offer of the platform image or marketplace image used to create the virtual machine.
///
@@ -260,15 +283,15 @@ internal partial interface IApplicationServerConfigurationInternal
///
string OSProfileAdminUsername { get; set; }
/// Specifies Windows operating system settings on the virtual machine.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration OSProfileOsconfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration OSProfileOsconfiguration { get; set; }
/// The subnet id.
string SubnetId { get; set; }
/// Gets or sets the virtual machine configuration.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration VirtualMachineConfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration VirtualMachineConfiguration { get; set; }
/// The image reference.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference VirtualMachineConfigurationImageReference { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference VirtualMachineConfigurationImageReference { get; set; }
/// The OS profile.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile VirtualMachineConfigurationOSProfile { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile VirtualMachineConfigurationOSProfile { get; set; }
/// The virtual machine size.
string VirtualMachineConfigurationVMSize { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerConfiguration.json.cs
similarity index 94%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerConfiguration.json.cs
index aa0cae4005c7..9e4fff60532a 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -65,20 +65,20 @@ internal ApplicationServerConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Workl
{
return;
}
- {_virtualMachineConfiguration = If( json?.PropertyT("virtualMachineConfiguration"), out var __jsonVirtualMachineConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfiguration.FromJson(__jsonVirtualMachineConfiguration) : VirtualMachineConfiguration;}
+ {_virtualMachineConfiguration = If( json?.PropertyT("virtualMachineConfiguration"), out var __jsonVirtualMachineConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfiguration.FromJson(__jsonVirtualMachineConfiguration) : VirtualMachineConfiguration;}
{_subnetId = If( json?.PropertyT("subnetId"), out var __jsonSubnetId) ? (string)__jsonSubnetId : (string)SubnetId;}
{_instanceCount = If( json?.PropertyT("instanceCount"), out var __jsonInstanceCount) ? (long)__jsonInstanceCount : InstanceCount;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new ApplicationServerConfiguration(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerFullResourceNames.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerFullResourceNames.PowerShell.cs
similarity index 74%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerFullResourceNames.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerFullResourceNames.PowerShell.cs
index 34f67ae78c15..5c707928e325 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerFullResourceNames.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerFullResourceNames.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -66,7 +66,7 @@ public partial class ApplicationServerFullResourceNames
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.
@@ -81,17 +81,17 @@ internal ApplicationServerFullResourceNames(global::System.Collections.IDictiona
// actually deserialize
if (content.Contains("VirtualMachine"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNamesInternal)this).VirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[]) content.GetValueForProperty("VirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNamesInternal)this).VirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNamesInternal)this).VirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[]) content.GetValueForProperty("VirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNamesInternal)this).VirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
}
if (content.Contains("AvailabilitySetName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNamesInternal)this).AvailabilitySetName = (string) content.GetValueForProperty("AvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNamesInternal)this).AvailabilitySetName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNamesInternal)this).AvailabilitySetName = (string) content.GetValueForProperty("AvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNamesInternal)this).AvailabilitySetName, 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.
@@ -106,39 +106,39 @@ internal ApplicationServerFullResourceNames(global::System.Management.Automation
// actually deserialize
if (content.Contains("VirtualMachine"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNamesInternal)this).VirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[]) content.GetValueForProperty("VirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNamesInternal)this).VirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNamesInternal)this).VirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[]) content.GetValueForProperty("VirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNamesInternal)this).VirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
}
if (content.Contains("AvailabilitySetName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNamesInternal)this).AvailabilitySetName = (string) content.GetValueForProperty("AvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNamesInternal)this).AvailabilitySetName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNamesInternal)this).AvailabilitySetName = (string) content.GetValueForProperty("AvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNamesInternal)this).AvailabilitySetName, 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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNames DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNames DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ApplicationServerFullResourceNames(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNames DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNames DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ApplicationServerFullResourceNames(content);
}
@@ -150,7 +150,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IA
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNames FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNames FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerFullResourceNames.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerFullResourceNames.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerFullResourceNames.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerFullResourceNames.TypeConverter.cs
index 3827245e8b6a..66ec64609692 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerFullResourceNames.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerFullResourceNames.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNames ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNames ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNames).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNames).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerFullResourceNames.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerFullResourceNames.cs
similarity index 87%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerFullResourceNames.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerFullResourceNames.cs
index a165da997b5c..64d2a1091fe6 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerFullResourceNames.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerFullResourceNames.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401
/// the number VMs to be created for application layer.
///
public partial class ApplicationServerFullResourceNames :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNames,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNamesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNames,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNamesInternal
{
/// Backing field for property.
@@ -26,11 +26,11 @@ public partial class ApplicationServerFullResourceNames :
public string AvailabilitySetName { get => this._availabilitySetName; set => this._availabilitySetName = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[] _virtualMachine;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[] _virtualMachine;
/// The list of virtual machine naming details.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[] VirtualMachine { get => this._virtualMachine; set => this._virtualMachine = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[] VirtualMachine { get => this._virtualMachine; set => this._virtualMachine = value; }
/// Creates an new instance.
public ApplicationServerFullResourceNames()
@@ -59,8 +59,8 @@ public partial interface IApplicationServerFullResourceNames :
ReadOnly = false,
Description = @"The list of virtual machine naming details.",
SerializedName = @"virtualMachines",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[] VirtualMachine { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[] VirtualMachine { get; set; }
}
/// The full resource names object for application layer resources. The number of entries in this list should be equal to
@@ -73,7 +73,7 @@ internal partial interface IApplicationServerFullResourceNamesInternal
///
string AvailabilitySetName { get; set; }
/// The list of virtual machine naming details.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[] VirtualMachine { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[] VirtualMachine { get; set; }
}
}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerFullResourceNames.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerFullResourceNames.json.cs
similarity index 90%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerFullResourceNames.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerFullResourceNames.json.cs
index 19d586a79b4f..8ce20be837bf 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerFullResourceNames.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerFullResourceNames.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -68,19 +68,19 @@ internal ApplicationServerFullResourceNames(Microsoft.Azure.PowerShell.Cmdlets.W
{
return;
}
- {_virtualMachine = If( json?.PropertyT("virtualMachines"), out var __jsonVirtualMachines) ? If( __jsonVirtualMachines as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNames.FromJson(__u) )) ))() : null : VirtualMachine;}
+ {_virtualMachine = If( json?.PropertyT("virtualMachines"), out var __jsonVirtualMachines) ? If( __jsonVirtualMachines as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNames.FromJson(__u) )) ))() : null : VirtualMachine;}
{_availabilitySetName = If( json?.PropertyT("availabilitySetName"), out var __jsonAvailabilitySetName) ? (string)__jsonAvailabilitySetName : (string)AvailabilitySetName;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNames.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNames.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNames.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNames.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerFullResourceNames FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerFullResourceNames FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new ApplicationServerFullResourceNames(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerVMDetails.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerVMDetails.PowerShell.cs
similarity index 70%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerVMDetails.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerVMDetails.PowerShell.cs
index 362d5516e8d9..60ea8ebd1bb8 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerVMDetails.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerVMDetails.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class ApplicationServerVMDetails
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.
@@ -78,21 +78,21 @@ internal ApplicationServerVMDetails(global::System.Collections.IDictionary conte
// actually deserialize
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ApplicationServerVirtualMachineType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ApplicationServerVirtualMachineType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ApplicationServerVirtualMachineType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ApplicationServerVirtualMachineType.CreateFrom);
}
if (content.Contains("VirtualMachineId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal)this).VirtualMachineId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal)this).VirtualMachineId, global::System.Convert.ToString);
}
if (content.Contains("StorageDetail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal)this).StorageDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[]) content.GetValueForProperty("StorageDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal)this).StorageDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.StorageInformationTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal)this).StorageDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[]) content.GetValueForProperty("StorageDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal)this).StorageDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.StorageInformationTypeConverter.ConvertFrom));
}
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.
@@ -107,43 +107,43 @@ internal ApplicationServerVMDetails(global::System.Management.Automation.PSObjec
// actually deserialize
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ApplicationServerVirtualMachineType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ApplicationServerVirtualMachineType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ApplicationServerVirtualMachineType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ApplicationServerVirtualMachineType.CreateFrom);
}
if (content.Contains("VirtualMachineId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal)this).VirtualMachineId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal)this).VirtualMachineId, global::System.Convert.ToString);
}
if (content.Contains("StorageDetail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal)this).StorageDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[]) content.GetValueForProperty("StorageDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal)this).StorageDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.StorageInformationTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal)this).StorageDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[]) content.GetValueForProperty("StorageDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal)this).StorageDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.StorageInformationTypeConverter.ConvertFrom));
}
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ApplicationServerVMDetails(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ApplicationServerVMDetails(content);
}
@@ -153,7 +153,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IA
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerVMDetails.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerVMDetails.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerVMDetails.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerVMDetails.TypeConverter.cs
index bc9f55f0210e..ca8d60768b82 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerVMDetails.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerVMDetails.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerVMDetails.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerVMDetails.cs
similarity index 83%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerVMDetails.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerVMDetails.cs
index ea07f49cb6dd..f619e584879d 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerVMDetails.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerVMDetails.cs
@@ -3,33 +3,33 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// The Application Server VM Details.
public partial class ApplicationServerVMDetails :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal
{
/// Internal Acessors for StorageDetail
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal.StorageDetail { get => this._storageDetail; set { {_storageDetail = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal.StorageDetail { get => this._storageDetail; set { {_storageDetail = value;} } }
/// Internal Acessors for Type
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ApplicationServerVirtualMachineType? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal.Type { get => this._type; set { {_type = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ApplicationServerVirtualMachineType? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal.Type { get => this._type; set { {_type = value;} } }
/// Internal Acessors for VirtualMachineId
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetailsInternal.VirtualMachineId { get => this._virtualMachineId; set { {_virtualMachineId = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetailsInternal.VirtualMachineId { get => this._virtualMachineId; set { {_virtualMachineId = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] _storageDetail;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] _storageDetail;
///
/// Storage details of all the Storage Accounts attached to the App Virtual Machine. For e.g. NFS on AFS Shared Storage.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] StorageDetail { get => this._storageDetail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] StorageDetail { get => this._storageDetail; }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ApplicationServerVirtualMachineType? _type;
@@ -62,8 +62,8 @@ public partial interface IApplicationServerVMDetails :
ReadOnly = true,
Description = @"Storage details of all the Storage Accounts attached to the App Virtual Machine. For e.g. NFS on AFS Shared Storage.",
SerializedName = @"storageDetails",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] StorageDetail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] StorageDetail { get; }
/// Defines the type of application server VM.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
@@ -89,7 +89,7 @@ internal partial interface IApplicationServerVMDetailsInternal
///
/// Storage details of all the Storage Accounts attached to the App Virtual Machine. For e.g. NFS on AFS Shared Storage.
///
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] StorageDetail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] StorageDetail { get; set; }
/// Defines the type of application server VM.
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ApplicationServerVirtualMachineType? Type { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerVMDetails.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerVMDetails.json.cs
similarity index 92%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerVMDetails.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerVMDetails.json.cs
index e1d8ba67b97d..73ff5c0bc3f4 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ApplicationServerVMDetails.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ApplicationServerVMDetails.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -67,18 +67,18 @@ internal ApplicationServerVMDetails(Microsoft.Azure.PowerShell.Cmdlets.Workloads
}
{_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;}
{_virtualMachineId = If( json?.PropertyT("virtualMachineId"), out var __jsonVirtualMachineId) ? (string)__jsonVirtualMachineId : (string)VirtualMachineId;}
- {_storageDetail = If( json?.PropertyT("storageDetails"), out var __jsonStorageDetails) ? If( __jsonStorageDetails as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.StorageInformation.FromJson(__u) )) ))() : null : StorageDetail;}
+ {_storageDetail = If( json?.PropertyT("storageDetails"), out var __jsonStorageDetails) ? If( __jsonStorageDetails as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.StorageInformation.FromJson(__u) )) ))() : null : StorageDetail;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new ApplicationServerVMDetails(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerConfiguration.PowerShell.cs
new file mode 100644
index 000000000000..bbe9f886bf62
--- /dev/null
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerConfiguration.PowerShell.cs
@@ -0,0 +1,278 @@
+// 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.Workloads.Models.Api20231001Preview
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
+
+ /// Gets or sets the central server configuration.
+ [System.ComponentModel.TypeConverter(typeof(CentralServerConfigurationTypeConverter))]
+ public partial class CentralServerConfiguration
+ {
+
+ ///
+ /// 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 a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal CentralServerConfiguration(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("VirtualMachineConfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration) content.GetValueForProperty("VirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfigurationTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SubnetId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).SubnetId, global::System.Convert.ToString);
+ }
+ if (content.Contains("InstanceCount"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).InstanceCount = (long) content.GetValueForProperty("InstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).InstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ if (content.Contains("VirtualMachineConfigurationImageReference"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("VirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("VirtualMachineConfigurationOSProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile) content.GetValueForProperty("VirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("VirtualMachineConfigurationVMSize"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("VirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationVMSize, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferencePublisher"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferencePublisher = (string) content.GetValueForProperty("ImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferencePublisher, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceOffer"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceOffer = (string) content.GetValueForProperty("ImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceOffer, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceSku"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceSku = (string) content.GetValueForProperty("ImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceSku, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceVersion"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceVersion, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceId, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileOsconfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSProfileOsconfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration) content.GetValueForProperty("OSProfileOsconfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSProfileOsconfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfigurationTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("OSProfileAdminUsername"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSProfileAdminUsername = (string) content.GetValueForProperty("OSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSProfileAdminUsername, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileAdminPassword"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSProfileAdminPassword = (string) content.GetValueForProperty("OSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSProfileAdminPassword, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSConfigurationOstype"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
+ }
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal CentralServerConfiguration(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("VirtualMachineConfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration) content.GetValueForProperty("VirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfigurationTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("SubnetId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).SubnetId, global::System.Convert.ToString);
+ }
+ if (content.Contains("InstanceCount"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).InstanceCount = (long) content.GetValueForProperty("InstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).InstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ if (content.Contains("VirtualMachineConfigurationImageReference"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("VirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("VirtualMachineConfigurationOSProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile) content.GetValueForProperty("VirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("VirtualMachineConfigurationVMSize"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("VirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).VirtualMachineConfigurationVMSize, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferencePublisher"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferencePublisher = (string) content.GetValueForProperty("ImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferencePublisher, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceOffer"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceOffer = (string) content.GetValueForProperty("ImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceOffer, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceSku"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceSku = (string) content.GetValueForProperty("ImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceSku, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceVersion"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceVersion, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).ImageReferenceId, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileOsconfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSProfileOsconfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration) content.GetValueForProperty("OSProfileOsconfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSProfileOsconfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfigurationTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("OSProfileAdminUsername"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSProfileAdminUsername = (string) content.GetValueForProperty("OSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSProfileAdminUsername, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileAdminPassword"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSProfileAdminPassword = (string) content.GetValueForProperty("OSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSProfileAdminPassword, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSConfigurationOstype"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
+ }
+ 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.Workloads.Models.Api20231001Preview.ICentralServerConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new CentralServerConfiguration(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.Workloads.Models.Api20231001Preview.ICentralServerConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new CentralServerConfiguration(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.Workloads.Models.Api20231001Preview.ICentralServerConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.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();
+ }
+ }
+ /// Gets or sets the central server configuration.
+ [System.ComponentModel.TypeConverter(typeof(CentralServerConfigurationTypeConverter))]
+ public partial interface ICentralServerConfiguration
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerConfiguration.TypeConverter.cs
index 5ffb15a12da6..479914a66ee5 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerConfiguration.cs
similarity index 72%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerConfiguration.cs
index a316bd5fdb33..cf418f143159 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerConfiguration.cs
@@ -3,29 +3,36 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Gets or sets the central server configuration.
public partial class CentralServerConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal
{
+ ///
+ /// Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to
+ /// provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
+ public string ImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceId = value ?? null; }
+
///
/// Specifies the offer of the platform image or marketplace image used to create the virtual machine.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string ImageReferenceOffer { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceOffer; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceOffer = value ?? null; }
+ public string ImageReferenceOffer { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceOffer; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceOffer = value ?? null; }
/// The image publisher.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string ImageReferencePublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferencePublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferencePublisher = value ?? null; }
+ public string ImageReferencePublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferencePublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferencePublisher = value ?? null; }
/// The image SKU.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string ImageReferenceSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceSku = value ?? null; }
+ public string ImageReferenceSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceSku = value ?? null; }
///
/// Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats
@@ -34,7 +41,7 @@ public partial class CentralServerConfiguration :
/// time even if a new version becomes available.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string ImageReferenceVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceVersion = value ?? null; }
+ public string ImageReferenceVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceVersion = value ?? null; }
/// Backing field for property.
private long _instanceCount;
@@ -44,20 +51,20 @@ public partial class CentralServerConfiguration :
public long InstanceCount { get => this._instanceCount; set => this._instanceCount = value; }
/// Internal Acessors for OSProfileOsconfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal.OSProfileOsconfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileOsconfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileOsconfiguration = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal.OSProfileOsconfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileOsconfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileOsconfiguration = value; }
/// Internal Acessors for VirtualMachineConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal.VirtualMachineConfiguration { get => (this._virtualMachineConfiguration = this._virtualMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfiguration()); set { {_virtualMachineConfiguration = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal.VirtualMachineConfiguration { get => (this._virtualMachineConfiguration = this._virtualMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfiguration()); set { {_virtualMachineConfiguration = value;} } }
/// Internal Acessors for VirtualMachineConfigurationImageReference
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal.VirtualMachineConfigurationImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReference = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal.VirtualMachineConfigurationImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReference = value; }
/// Internal Acessors for VirtualMachineConfigurationOSProfile
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfigurationInternal.VirtualMachineConfigurationOSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfile = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfigurationInternal.VirtualMachineConfigurationOSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfile = value; }
/// The OS Type
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType? OSConfigurationOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSConfigurationOstype; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSConfigurationOstype = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType? OSConfigurationOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSConfigurationOstype; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSConfigurationOstype = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType)""); }
///
/// Specifies the password of the administrator account.
**Minimum-length (Windows):** 8 characters
**Minimum-length
@@ -70,7 +77,7 @@ public partial class CentralServerConfiguration :
/// Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string OSProfileAdminPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminPassword = value ?? null; }
+ public string OSProfileAdminPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminPassword = value ?? null; }
///
/// Specifies the name of the administrator account.
This property cannot be updated after the VM is created.
@@ -81,7 +88,7 @@ public partial class CentralServerConfiguration :
/// (Windows):** 20 characters.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string OSProfileAdminUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminUsername = value ?? null; }
+ public string OSProfileAdminUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminUsername = value ?? null; }
/// Backing field for property.
private string _subnetId;
@@ -91,15 +98,15 @@ public partial class CentralServerConfiguration :
public string SubnetId { get => this._subnetId; set => this._subnetId = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration _virtualMachineConfiguration;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration _virtualMachineConfiguration;
/// Gets or sets the virtual machine configuration.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration VirtualMachineConfiguration { get => (this._virtualMachineConfiguration = this._virtualMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfiguration()); set => this._virtualMachineConfiguration = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration VirtualMachineConfiguration { get => (this._virtualMachineConfiguration = this._virtualMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfiguration()); set => this._virtualMachineConfiguration = value; }
/// The virtual machine size.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string VirtualMachineConfigurationVMSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).VMSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).VMSize = value ; }
+ public string VirtualMachineConfigurationVMSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).VMSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).VMSize = value ; }
/// Creates an new instance.
public CentralServerConfiguration()
@@ -111,6 +118,17 @@ public CentralServerConfiguration()
public partial interface ICentralServerConfiguration :
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable
{
+ ///
+ /// Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to
+ /// provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.",
+ SerializedName = @"id",
+ PossibleTypes = new [] { typeof(string) })]
+ string ImageReferenceId { get; set; }
///
/// Specifies the offer of the platform image or marketplace image used to create the virtual machine.
///
@@ -220,6 +238,11 @@ public partial interface ICentralServerConfiguration :
internal partial interface ICentralServerConfigurationInternal
{
+ ///
+ /// Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to
+ /// provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.
+ ///
+ string ImageReferenceId { get; set; }
///
/// Specifies the offer of the platform image or marketplace image used to create the virtual machine.
///
@@ -260,15 +283,15 @@ internal partial interface ICentralServerConfigurationInternal
///
string OSProfileAdminUsername { get; set; }
/// Specifies Windows operating system settings on the virtual machine.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration OSProfileOsconfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration OSProfileOsconfiguration { get; set; }
/// The subnet id.
string SubnetId { get; set; }
/// Gets or sets the virtual machine configuration.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration VirtualMachineConfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration VirtualMachineConfiguration { get; set; }
/// The image reference.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference VirtualMachineConfigurationImageReference { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference VirtualMachineConfigurationImageReference { get; set; }
/// The OS profile.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile VirtualMachineConfigurationOSProfile { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile VirtualMachineConfigurationOSProfile { get; set; }
/// The virtual machine size.
string VirtualMachineConfigurationVMSize { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerConfiguration.json.cs
similarity index 94%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerConfiguration.json.cs
index fcbe17d81df4..687925e4f067 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -65,20 +65,20 @@ internal CentralServerConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Workloads
{
return;
}
- {_virtualMachineConfiguration = If( json?.PropertyT("virtualMachineConfiguration"), out var __jsonVirtualMachineConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfiguration.FromJson(__jsonVirtualMachineConfiguration) : VirtualMachineConfiguration;}
+ {_virtualMachineConfiguration = If( json?.PropertyT("virtualMachineConfiguration"), out var __jsonVirtualMachineConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfiguration.FromJson(__jsonVirtualMachineConfiguration) : VirtualMachineConfiguration;}
{_subnetId = If( json?.PropertyT("subnetId"), out var __jsonSubnetId) ? (string)__jsonSubnetId : (string)SubnetId;}
{_instanceCount = If( json?.PropertyT("instanceCount"), out var __jsonInstanceCount) ? (long)__jsonInstanceCount : InstanceCount;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new CentralServerConfiguration(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerFullResourceNames.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerFullResourceNames.PowerShell.cs
similarity index 58%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerFullResourceNames.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerFullResourceNames.PowerShell.cs
index febe35b139fa..57096c3daaa2 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerFullResourceNames.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerFullResourceNames.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class CentralServerFullResourceNames
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.
@@ -78,37 +78,37 @@ internal CentralServerFullResourceNames(global::System.Collections.IDictionary c
// actually deserialize
if (content.Contains("LoadBalancer"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames) content.GetValueForProperty("LoadBalancer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNamesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames) content.GetValueForProperty("LoadBalancer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerResourceNamesTypeConverter.ConvertFrom);
}
if (content.Contains("VirtualMachine"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).VirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[]) content.GetValueForProperty("VirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).VirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).VirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[]) content.GetValueForProperty("VirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).VirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
}
if (content.Contains("AvailabilitySetName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).AvailabilitySetName = (string) content.GetValueForProperty("AvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).AvailabilitySetName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).AvailabilitySetName = (string) content.GetValueForProperty("AvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).AvailabilitySetName, global::System.Convert.ToString);
}
if (content.Contains("LoadBalancerName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerName = (string) content.GetValueForProperty("LoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerName = (string) content.GetValueForProperty("LoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerName, global::System.Convert.ToString);
}
if (content.Contains("LoadBalancerFrontendIPConfigurationName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName = (string[]) content.GetValueForProperty("LoadBalancerFrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName = (string[]) content.GetValueForProperty("LoadBalancerFrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
}
if (content.Contains("LoadBalancerBackendPoolName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName = (string[]) content.GetValueForProperty("LoadBalancerBackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName = (string[]) content.GetValueForProperty("LoadBalancerBackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
}
if (content.Contains("LoadBalancerHealthProbeName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName = (string[]) content.GetValueForProperty("LoadBalancerHealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName = (string[]) content.GetValueForProperty("LoadBalancerHealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, 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.
@@ -123,59 +123,59 @@ internal CentralServerFullResourceNames(global::System.Management.Automation.PSO
// actually deserialize
if (content.Contains("LoadBalancer"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames) content.GetValueForProperty("LoadBalancer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNamesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames) content.GetValueForProperty("LoadBalancer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerResourceNamesTypeConverter.ConvertFrom);
}
if (content.Contains("VirtualMachine"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).VirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[]) content.GetValueForProperty("VirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).VirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).VirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[]) content.GetValueForProperty("VirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).VirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
}
if (content.Contains("AvailabilitySetName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).AvailabilitySetName = (string) content.GetValueForProperty("AvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).AvailabilitySetName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).AvailabilitySetName = (string) content.GetValueForProperty("AvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).AvailabilitySetName, global::System.Convert.ToString);
}
if (content.Contains("LoadBalancerName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerName = (string) content.GetValueForProperty("LoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerName = (string) content.GetValueForProperty("LoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerName, global::System.Convert.ToString);
}
if (content.Contains("LoadBalancerFrontendIPConfigurationName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName = (string[]) content.GetValueForProperty("LoadBalancerFrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName = (string[]) content.GetValueForProperty("LoadBalancerFrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
}
if (content.Contains("LoadBalancerBackendPoolName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName = (string[]) content.GetValueForProperty("LoadBalancerBackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName = (string[]) content.GetValueForProperty("LoadBalancerBackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
}
if (content.Contains("LoadBalancerHealthProbeName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName = (string[]) content.GetValueForProperty("LoadBalancerHealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName = (string[]) content.GetValueForProperty("LoadBalancerHealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, 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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNames DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNames DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new CentralServerFullResourceNames(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNames DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNames DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new CentralServerFullResourceNames(content);
}
@@ -185,7 +185,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IC
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNames FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNames FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerFullResourceNames.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerFullResourceNames.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerFullResourceNames.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerFullResourceNames.TypeConverter.cs
index fdfb8a306669..370d23925624 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerFullResourceNames.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerFullResourceNames.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNames ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNames ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNames).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNames).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerFullResourceNames.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerFullResourceNames.cs
similarity index 80%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerFullResourceNames.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerFullResourceNames.cs
index 759ded372b2c..f3412e3c687a 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerFullResourceNames.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerFullResourceNames.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// The full resource names object for central server layer resources.
public partial class CentralServerFullResourceNames :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNames,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNames,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal
{
/// Backing field for property.
@@ -23,50 +23,50 @@ public partial class CentralServerFullResourceNames :
public string AvailabilitySetName { get => this._availabilitySetName; set => this._availabilitySetName = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames _loadBalancer;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames _loadBalancer;
/// The resource names object for load balancer and related resources.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames LoadBalancer { get => (this._loadBalancer = this._loadBalancer ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNames()); set => this._loadBalancer = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames LoadBalancer { get => (this._loadBalancer = this._loadBalancer ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerResourceNames()); set => this._loadBalancer = value; }
///
/// The list of backend pool names. Currently, ACSS deploys only one backend pool and hence, size of this list should be 1
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string[] LoadBalancerBackendPoolName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).BackendPoolName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).BackendPoolName = value ?? null /* arrayOf */; }
+ public string[] LoadBalancerBackendPoolName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).BackendPoolName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).BackendPoolName = value ?? null /* arrayOf */; }
///
/// The list of frontend IP configuration names. If provided as input, size of this list should be 2 for cs layer and should
/// be 1 for database layer.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string[] LoadBalancerFrontendIPConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).FrontendIPConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).FrontendIPConfigurationName = value ?? null /* arrayOf */; }
+ public string[] LoadBalancerFrontendIPConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).FrontendIPConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).FrontendIPConfigurationName = value ?? null /* arrayOf */; }
///
/// The list of health probe names. If provided as input, size of this list should be 2 for cs layer and should be 1 for database
/// layer.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string[] LoadBalancerHealthProbeName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).HealthProbeName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).HealthProbeName = value ?? null /* arrayOf */; }
+ public string[] LoadBalancerHealthProbeName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).HealthProbeName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).HealthProbeName = value ?? null /* arrayOf */; }
///
/// The full resource name for load balancer. If this value is not provided, load balancer will be name as {ASCS/DB}-loadBalancer.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string LoadBalancerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).LoadBalancerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).LoadBalancerName = value ?? null; }
+ public string LoadBalancerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).LoadBalancerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).LoadBalancerName = value ?? null; }
/// Internal Acessors for LoadBalancer
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNamesInternal.LoadBalancer { get => (this._loadBalancer = this._loadBalancer ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNames()); set { {_loadBalancer = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNamesInternal.LoadBalancer { get => (this._loadBalancer = this._loadBalancer ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerResourceNames()); set { {_loadBalancer = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[] _virtualMachine;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[] _virtualMachine;
///
/// The list of names for all ASCS virtual machines to be deployed. The number of entries in this list should be equal to
/// the number VMs to be created for ASCS layer. At maximum, there can be two virtual machines at this layer: ASCS and ERS.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[] VirtualMachine { get => this._virtualMachine; set => this._virtualMachine = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[] VirtualMachine { get => this._virtualMachine; set => this._virtualMachine = value; }
/// Creates an new instance.
public CentralServerFullResourceNames()
@@ -139,8 +139,8 @@ public partial interface ICentralServerFullResourceNames :
ReadOnly = false,
Description = @"The list of names for all ASCS virtual machines to be deployed. The number of entries in this list should be equal to the number VMs to be created for ASCS layer. At maximum, there can be two virtual machines at this layer: ASCS and ERS.",
SerializedName = @"virtualMachines",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[] VirtualMachine { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[] VirtualMachine { get; set; }
}
/// The full resource names object for central server layer resources.
@@ -152,7 +152,7 @@ internal partial interface ICentralServerFullResourceNamesInternal
///
string AvailabilitySetName { get; set; }
/// The resource names object for load balancer and related resources.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames LoadBalancer { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames LoadBalancer { get; set; }
///
/// The list of backend pool names. Currently, ACSS deploys only one backend pool and hence, size of this list should be 1
///
@@ -175,7 +175,7 @@ internal partial interface ICentralServerFullResourceNamesInternal
/// The list of names for all ASCS virtual machines to be deployed. The number of entries in this list should be equal to
/// the number VMs to be created for ASCS layer. At maximum, there can be two virtual machines at this layer: ASCS and ERS.
///
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[] VirtualMachine { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[] VirtualMachine { get; set; }
}
}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerFullResourceNames.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerFullResourceNames.json.cs
similarity index 90%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerFullResourceNames.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerFullResourceNames.json.cs
index d407b11b89fd..14e6555bfc1c 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerFullResourceNames.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerFullResourceNames.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -65,20 +65,20 @@ internal CentralServerFullResourceNames(Microsoft.Azure.PowerShell.Cmdlets.Workl
{
return;
}
- {_loadBalancer = If( json?.PropertyT("loadBalancer"), out var __jsonLoadBalancer) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNames.FromJson(__jsonLoadBalancer) : LoadBalancer;}
- {_virtualMachine = If( json?.PropertyT("virtualMachines"), out var __jsonVirtualMachines) ? If( __jsonVirtualMachines as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNames.FromJson(__u) )) ))() : null : VirtualMachine;}
+ {_loadBalancer = If( json?.PropertyT("loadBalancer"), out var __jsonLoadBalancer) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerResourceNames.FromJson(__jsonLoadBalancer) : LoadBalancer;}
+ {_virtualMachine = If( json?.PropertyT("virtualMachines"), out var __jsonVirtualMachines) ? If( __jsonVirtualMachines as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNames.FromJson(__u) )) ))() : null : VirtualMachine;}
{_availabilitySetName = If( json?.PropertyT("availabilitySetName"), out var __jsonAvailabilitySetName) ? (string)__jsonAvailabilitySetName : (string)AvailabilitySetName;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNames.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNames.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNames.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNames.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerFullResourceNames FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerFullResourceNames FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new CentralServerFullResourceNames(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerVMDetails.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerVMDetails.PowerShell.cs
similarity index 70%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerVMDetails.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerVMDetails.PowerShell.cs
index d7c78c93a646..fdc2a7fb0668 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerVMDetails.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerVMDetails.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class CentralServerVMDetails
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.
@@ -78,21 +78,21 @@ internal CentralServerVMDetails(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CentralServerVirtualMachineType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CentralServerVirtualMachineType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CentralServerVirtualMachineType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CentralServerVirtualMachineType.CreateFrom);
}
if (content.Contains("VirtualMachineId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal)this).VirtualMachineId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal)this).VirtualMachineId, global::System.Convert.ToString);
}
if (content.Contains("StorageDetail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal)this).StorageDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[]) content.GetValueForProperty("StorageDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal)this).StorageDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.StorageInformationTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal)this).StorageDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[]) content.GetValueForProperty("StorageDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal)this).StorageDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.StorageInformationTypeConverter.ConvertFrom));
}
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.
@@ -107,41 +107,43 @@ internal CentralServerVMDetails(global::System.Management.Automation.PSObject co
// actually deserialize
if (content.Contains("Type"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CentralServerVirtualMachineType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CentralServerVirtualMachineType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CentralServerVirtualMachineType?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CentralServerVirtualMachineType.CreateFrom);
}
if (content.Contains("VirtualMachineId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal)this).VirtualMachineId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal)this).VirtualMachineId, global::System.Convert.ToString);
}
if (content.Contains("StorageDetail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal)this).StorageDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[]) content.GetValueForProperty("StorageDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal)this).StorageDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.StorageInformationTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal)this).StorageDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[]) content.GetValueForProperty("StorageDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal)this).StorageDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.StorageInformationTypeConverter.ConvertFrom));
}
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.Workloads.Models.Api20230401.ICentralServerVMDetails DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetails DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new CentralServerVMDetails(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.Workloads.Models.Api20230401.ICentralServerVMDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new CentralServerVMDetails(content);
}
@@ -151,7 +153,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IC
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerVMDetails.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerVMDetails.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerVMDetails.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerVMDetails.TypeConverter.cs
index 68d834f00238..61ad544e15cd 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerVMDetails.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerVMDetails.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetails ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetails ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetails).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetails).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerVMDetails.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerVMDetails.cs
similarity index 84%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerVMDetails.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerVMDetails.cs
index 474c75be39f4..6228053c6279 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerVMDetails.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerVMDetails.cs
@@ -3,33 +3,33 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// The SAP Central Services Instance VM details.
public partial class CentralServerVMDetails :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetails,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetails,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal
{
/// Internal Acessors for StorageDetail
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal.StorageDetail { get => this._storageDetail; set { {_storageDetail = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal.StorageDetail { get => this._storageDetail; set { {_storageDetail = value;} } }
/// Internal Acessors for Type
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CentralServerVirtualMachineType? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal.Type { get => this._type; set { {_type = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CentralServerVirtualMachineType? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal.Type { get => this._type; set { {_type = value;} } }
/// Internal Acessors for VirtualMachineId
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetailsInternal.VirtualMachineId { get => this._virtualMachineId; set { {_virtualMachineId = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetailsInternal.VirtualMachineId { get => this._virtualMachineId; set { {_virtualMachineId = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] _storageDetail;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] _storageDetail;
///
/// Storage details of all the Storage Accounts attached to the ASCS Virtual Machine. For e.g. NFS on AFS Shared Storage.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] StorageDetail { get => this._storageDetail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] StorageDetail { get => this._storageDetail; }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CentralServerVirtualMachineType? _type;
@@ -62,8 +62,8 @@ public partial interface ICentralServerVMDetails :
ReadOnly = true,
Description = @"Storage details of all the Storage Accounts attached to the ASCS Virtual Machine. For e.g. NFS on AFS Shared Storage.",
SerializedName = @"storageDetails",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] StorageDetail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] StorageDetail { get; }
/// Defines the type of central server VM.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
@@ -89,7 +89,7 @@ internal partial interface ICentralServerVMDetailsInternal
///
/// Storage details of all the Storage Accounts attached to the ASCS Virtual Machine. For e.g. NFS on AFS Shared Storage.
///
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] StorageDetail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] StorageDetail { get; set; }
/// Defines the type of central server VM.
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.CentralServerVirtualMachineType? Type { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerVMDetails.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerVMDetails.json.cs
similarity index 92%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerVMDetails.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerVMDetails.json.cs
index 9fde88db8524..8c233aa91c68 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CentralServerVMDetails.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CentralServerVMDetails.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -67,18 +67,18 @@ internal CentralServerVMDetails(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Run
}
{_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;}
{_virtualMachineId = If( json?.PropertyT("virtualMachineId"), out var __jsonVirtualMachineId) ? (string)__jsonVirtualMachineId : (string)VirtualMachineId;}
- {_storageDetail = If( json?.PropertyT("storageDetails"), out var __jsonStorageDetails) ? If( __jsonStorageDetails as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.StorageInformation.FromJson(__u) )) ))() : null : StorageDetail;}
+ {_storageDetail = If( json?.PropertyT("storageDetails"), out var __jsonStorageDetails) ? If( __jsonStorageDetails as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.StorageInformation.FromJson(__u) )) ))() : null : StorageDetail;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetails.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetails.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetails.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetails.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICentralServerVMDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICentralServerVMDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new CentralServerVMDetails(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CreateAndMountFileShareConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CreateAndMountFileShareConfiguration.PowerShell.cs
similarity index 74%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CreateAndMountFileShareConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CreateAndMountFileShareConfiguration.PowerShell.cs
index e60d9a1ef6d3..e60ec7865070 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CreateAndMountFileShareConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CreateAndMountFileShareConfiguration.PowerShell.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
///
/// Gets or sets the file share configuration where the transport directory fileshare is created and mounted as a part of
/// the create infra flow. Please pre-create the resource group you intend to place the transport directory in. The storage
- /// account and fileshare will be auto-created by the ACSS and doesn’t need to pre-created.
+ /// account and fileshare will be auto-created by the ACSS and doesn't need to be pre-created.
///
[System.ComponentModel.TypeConverter(typeof(CreateAndMountFileShareConfigurationTypeConverter))]
public partial class CreateAndMountFileShareConfiguration
@@ -67,7 +67,7 @@ public partial class CreateAndMountFileShareConfiguration
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.
@@ -82,21 +82,21 @@ internal CreateAndMountFileShareConfiguration(global::System.Collections.IDictio
// actually deserialize
if (content.Contains("ResourceGroup"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfigurationInternal)this).ResourceGroup = (string) content.GetValueForProperty("ResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfigurationInternal)this).ResourceGroup, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfigurationInternal)this).ResourceGroup = (string) content.GetValueForProperty("ResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfigurationInternal)this).ResourceGroup, global::System.Convert.ToString);
}
if (content.Contains("StorageAccountName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfigurationInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfigurationInternal)this).StorageAccountName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfigurationInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfigurationInternal)this).StorageAccountName, global::System.Convert.ToString);
}
if (content.Contains("ConfigurationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType.CreateFrom);
}
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.
@@ -111,43 +111,43 @@ internal CreateAndMountFileShareConfiguration(global::System.Management.Automati
// actually deserialize
if (content.Contains("ResourceGroup"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfigurationInternal)this).ResourceGroup = (string) content.GetValueForProperty("ResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfigurationInternal)this).ResourceGroup, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfigurationInternal)this).ResourceGroup = (string) content.GetValueForProperty("ResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfigurationInternal)this).ResourceGroup, global::System.Convert.ToString);
}
if (content.Contains("StorageAccountName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfigurationInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfigurationInternal)this).StorageAccountName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfigurationInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfigurationInternal)this).StorageAccountName, global::System.Convert.ToString);
}
if (content.Contains("ConfigurationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType.CreateFrom);
}
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new CreateAndMountFileShareConfiguration(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new CreateAndMountFileShareConfiguration(content);
}
@@ -159,7 +159,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IC
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
@@ -180,7 +180,7 @@ public override string ToString()
}
/// Gets or sets the file share configuration where the transport directory fileshare is created and mounted as a part of
/// the create infra flow. Please pre-create the resource group you intend to place the transport directory in. The storage
- /// account and fileshare will be auto-created by the ACSS and doesn’t need to pre-created.
+ /// account and fileshare will be auto-created by the ACSS and doesn't need to be pre-created.
[System.ComponentModel.TypeConverter(typeof(CreateAndMountFileShareConfigurationTypeConverter))]
public partial interface ICreateAndMountFileShareConfiguration
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CreateAndMountFileShareConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CreateAndMountFileShareConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CreateAndMountFileShareConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CreateAndMountFileShareConfiguration.TypeConverter.cs
index b7a54ff4fa3b..905f59e3e94a 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CreateAndMountFileShareConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CreateAndMountFileShareConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CreateAndMountFileShareConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CreateAndMountFileShareConfiguration.cs
similarity index 87%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CreateAndMountFileShareConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CreateAndMountFileShareConfiguration.cs
index e4142290409c..819118af9ee0 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CreateAndMountFileShareConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CreateAndMountFileShareConfiguration.cs
@@ -3,29 +3,29 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
///
/// Gets or sets the file share configuration where the transport directory fileshare is created and mounted as a part of
/// the create infra flow. Please pre-create the resource group you intend to place the transport directory in. The storage
- /// account and fileshare will be auto-created by the ACSS and doesn’t need to pre-created.
+ /// account and fileshare will be auto-created by the ACSS and doesn't need to be pre-created.
///
public partial class CreateAndMountFileShareConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfigurationInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfigurationInternal,
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfiguration __fileShareConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.FileShareConfiguration();
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfiguration __fileShareConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.FileShareConfiguration();
/// The type of file share config.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType ConfigurationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)__fileShareConfiguration).ConfigurationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)__fileShareConfiguration).ConfigurationType = value ; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType ConfigurationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)__fileShareConfiguration).ConfigurationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)__fileShareConfiguration).ConfigurationType = value ; }
/// Backing field for property.
private string _resourceGroup;
@@ -66,10 +66,10 @@ public CreateAndMountFileShareConfiguration()
}
/// Gets or sets the file share configuration where the transport directory fileshare is created and mounted as a part of
/// the create infra flow. Please pre-create the resource group you intend to place the transport directory in. The storage
- /// account and fileshare will be auto-created by the ACSS and doesn’t need to pre-created.
+ /// account and fileshare will be auto-created by the ACSS and doesn't need to be pre-created.
public partial interface ICreateAndMountFileShareConfiguration :
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfiguration
{
///
/// The name of transport file share resource group. This should be pre created by the customer. The app rg is used in case
@@ -96,9 +96,9 @@ public partial interface ICreateAndMountFileShareConfiguration :
}
/// Gets or sets the file share configuration where the transport directory fileshare is created and mounted as a part of
/// the create infra flow. Please pre-create the resource group you intend to place the transport directory in. The storage
- /// account and fileshare will be auto-created by the ACSS and doesn’t need to pre-created.
+ /// account and fileshare will be auto-created by the ACSS and doesn't need to be pre-created.
internal partial interface ICreateAndMountFileShareConfigurationInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal
{
///
/// The name of transport file share resource group. This should be pre created by the customer. The app rg is used in case
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CreateAndMountFileShareConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CreateAndMountFileShareConfiguration.json.cs
similarity index 94%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CreateAndMountFileShareConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CreateAndMountFileShareConfiguration.json.cs
index 1e6352cd4adc..1f73c217d24d 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/CreateAndMountFileShareConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/CreateAndMountFileShareConfiguration.json.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
///
/// Gets or sets the file share configuration where the transport directory fileshare is created and mounted as a part of
/// the create infra flow. Please pre-create the resource group you intend to place the transport directory in. The storage
- /// account and fileshare will be auto-created by the ACSS and doesn’t need to pre-created.
+ /// account and fileshare will be auto-created by the ACSS and doesn't need to be pre-created.
///
public partial class CreateAndMountFileShareConfiguration
{
@@ -69,20 +69,20 @@ internal CreateAndMountFileShareConfiguration(Microsoft.Azure.PowerShell.Cmdlets
{
return;
}
- __fileShareConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.FileShareConfiguration(json);
+ __fileShareConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.FileShareConfiguration(json);
{_resourceGroup = If( json?.PropertyT("resourceGroup"), out var __jsonResourceGroup) ? (string)__jsonResourceGroup : (string)ResourceGroup;}
{_storageAccountName = If( json?.PropertyT("storageAccountName"), out var __jsonStorageAccountName) ? (string)__jsonStorageAccountName : (string)StorageAccountName;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ICreateAndMountFileShareConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ICreateAndMountFileShareConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new CreateAndMountFileShareConfiguration(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseConfiguration.PowerShell.cs
new file mode 100644
index 000000000000..79057540e355
--- /dev/null
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseConfiguration.PowerShell.cs
@@ -0,0 +1,302 @@
+// 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.Workloads.Models.Api20231001Preview
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
+
+ /// Gets or sets the database configuration.
+ [System.ComponentModel.TypeConverter(typeof(DatabaseConfigurationTypeConverter))]
+ public partial class DatabaseConfiguration
+ {
+
+ ///
+ /// 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 a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal DatabaseConfiguration(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("VirtualMachineConfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration) content.GetValueForProperty("VirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfigurationTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("DiskConfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).DiskConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration) content.GetValueForProperty("DiskConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).DiskConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskConfigurationTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("DatabaseType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).DatabaseType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType?) content.GetValueForProperty("DatabaseType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).DatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType.CreateFrom);
+ }
+ if (content.Contains("SubnetId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).SubnetId, global::System.Convert.ToString);
+ }
+ if (content.Contains("InstanceCount"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).InstanceCount = (long) content.GetValueForProperty("InstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).InstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ if (content.Contains("VirtualMachineConfigurationImageReference"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("VirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("VirtualMachineConfigurationOSProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile) content.GetValueForProperty("VirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("VirtualMachineConfigurationVMSize"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("VirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationVMSize, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferencePublisher"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferencePublisher = (string) content.GetValueForProperty("ImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferencePublisher, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceOffer"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceOffer = (string) content.GetValueForProperty("ImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceOffer, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceSku"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceSku = (string) content.GetValueForProperty("ImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceSku, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceVersion"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceVersion, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceId, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileOsconfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSProfileOsconfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration) content.GetValueForProperty("OSProfileOsconfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSProfileOsconfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfigurationTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("DiskConfigurationDiskVolumeConfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).DiskConfigurationDiskVolumeConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations) content.GetValueForProperty("DiskConfigurationDiskVolumeConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).DiskConfigurationDiskVolumeConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskConfigurationDiskVolumeConfigurationsTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("OSProfileAdminUsername"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSProfileAdminUsername = (string) content.GetValueForProperty("OSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSProfileAdminUsername, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileAdminPassword"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSProfileAdminPassword = (string) content.GetValueForProperty("OSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSProfileAdminPassword, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSConfigurationOstype"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
+ }
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal DatabaseConfiguration(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("VirtualMachineConfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration) content.GetValueForProperty("VirtualMachineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfigurationTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("DiskConfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).DiskConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration) content.GetValueForProperty("DiskConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).DiskConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskConfigurationTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("DatabaseType"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).DatabaseType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType?) content.GetValueForProperty("DatabaseType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).DatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType.CreateFrom);
+ }
+ if (content.Contains("SubnetId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).SubnetId, global::System.Convert.ToString);
+ }
+ if (content.Contains("InstanceCount"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).InstanceCount = (long) content.GetValueForProperty("InstanceCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).InstanceCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ if (content.Contains("VirtualMachineConfigurationImageReference"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationImageReference = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference) content.GetValueForProperty("VirtualMachineConfigurationImageReference",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationImageReference, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ImageReferenceTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("VirtualMachineConfigurationOSProfile"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationOSProfile = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile) content.GetValueForProperty("VirtualMachineConfigurationOSProfile",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationOSProfile, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSProfileTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("VirtualMachineConfigurationVMSize"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationVMSize = (string) content.GetValueForProperty("VirtualMachineConfigurationVMSize",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).VirtualMachineConfigurationVMSize, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferencePublisher"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferencePublisher = (string) content.GetValueForProperty("ImageReferencePublisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferencePublisher, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceOffer"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceOffer = (string) content.GetValueForProperty("ImageReferenceOffer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceOffer, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceSku"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceSku = (string) content.GetValueForProperty("ImageReferenceSku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceSku, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceVersion"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceVersion = (string) content.GetValueForProperty("ImageReferenceVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceVersion, global::System.Convert.ToString);
+ }
+ if (content.Contains("ImageReferenceId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceId = (string) content.GetValueForProperty("ImageReferenceId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).ImageReferenceId, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileOsconfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSProfileOsconfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration) content.GetValueForProperty("OSProfileOsconfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSProfileOsconfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfigurationTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("DiskConfigurationDiskVolumeConfiguration"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).DiskConfigurationDiskVolumeConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations) content.GetValueForProperty("DiskConfigurationDiskVolumeConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).DiskConfigurationDiskVolumeConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskConfigurationDiskVolumeConfigurationsTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("OSProfileAdminUsername"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSProfileAdminUsername = (string) content.GetValueForProperty("OSProfileAdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSProfileAdminUsername, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSProfileAdminPassword"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSProfileAdminPassword = (string) content.GetValueForProperty("OSProfileAdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSProfileAdminPassword, global::System.Convert.ToString);
+ }
+ if (content.Contains("OSConfigurationOstype"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
+ }
+ 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.Workloads.Models.Api20231001Preview.IDatabaseConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new DatabaseConfiguration(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.Workloads.Models.Api20231001Preview.IDatabaseConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new DatabaseConfiguration(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.Workloads.Models.Api20231001Preview.IDatabaseConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.Workloads.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();
+ }
+ }
+ /// Gets or sets the database configuration.
+ [System.ComponentModel.TypeConverter(typeof(DatabaseConfigurationTypeConverter))]
+ public partial interface IDatabaseConfiguration
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseConfiguration.TypeConverter.cs
index 2cdc65a4f680..8638f4c8459d 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseConfiguration.cs
similarity index 72%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseConfiguration.cs
index 3ccb458ed32c..ca7db436f507 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseConfiguration.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Gets or sets the database configuration.
public partial class DatabaseConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal
{
/// Backing field for property.
@@ -21,32 +21,39 @@ public partial class DatabaseConfiguration :
public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType? DatabaseType { get => this._databaseType; set => this._databaseType = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration _diskConfiguration;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration _diskConfiguration;
/// Gets or sets the disk configuration.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration DiskConfiguration { get => (this._diskConfiguration = this._diskConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfiguration()); set => this._diskConfiguration = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration DiskConfiguration { get => (this._diskConfiguration = this._diskConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskConfiguration()); set => this._diskConfiguration = value; }
///
/// The disk configuration for the db volume. For HANA, Required volumes are: ['hana/data', 'hana/log', hana/shared', 'usr/sap',
/// 'os'], Optional volume : ['backup'].
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations DiskConfigurationDiskVolumeConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationInternal)DiskConfiguration).DiskVolumeConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationInternal)DiskConfiguration).DiskVolumeConfiguration = value ?? null /* model class */; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations DiskConfigurationDiskVolumeConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationInternal)DiskConfiguration).DiskVolumeConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationInternal)DiskConfiguration).DiskVolumeConfiguration = value ?? null /* model class */; }
+
+ ///
+ /// Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to
+ /// provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
+ public string ImageReferenceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceId = value ?? null; }
///
/// Specifies the offer of the platform image or marketplace image used to create the virtual machine.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string ImageReferenceOffer { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceOffer; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceOffer = value ?? null; }
+ public string ImageReferenceOffer { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceOffer; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceOffer = value ?? null; }
/// The image publisher.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string ImageReferencePublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferencePublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferencePublisher = value ?? null; }
+ public string ImageReferencePublisher { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferencePublisher; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferencePublisher = value ?? null; }
/// The image SKU.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string ImageReferenceSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceSku = value ?? null; }
+ public string ImageReferenceSku { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceSku; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceSku = value ?? null; }
///
/// Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats
@@ -55,7 +62,7 @@ public partial class DatabaseConfiguration :
/// time even if a new version becomes available.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string ImageReferenceVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceVersion = value ?? null; }
+ public string ImageReferenceVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReferenceVersion = value ?? null; }
/// Backing field for property.
private long _instanceCount;
@@ -65,23 +72,23 @@ public partial class DatabaseConfiguration :
public long InstanceCount { get => this._instanceCount; set => this._instanceCount = value; }
/// Internal Acessors for DiskConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal.DiskConfiguration { get => (this._diskConfiguration = this._diskConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfiguration()); set { {_diskConfiguration = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal.DiskConfiguration { get => (this._diskConfiguration = this._diskConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskConfiguration()); set { {_diskConfiguration = value;} } }
/// Internal Acessors for OSProfileOsconfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal.OSProfileOsconfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileOsconfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileOsconfiguration = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal.OSProfileOsconfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileOsconfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileOsconfiguration = value; }
/// Internal Acessors for VirtualMachineConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal.VirtualMachineConfiguration { get => (this._virtualMachineConfiguration = this._virtualMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfiguration()); set { {_virtualMachineConfiguration = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal.VirtualMachineConfiguration { get => (this._virtualMachineConfiguration = this._virtualMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfiguration()); set { {_virtualMachineConfiguration = value;} } }
/// Internal Acessors for VirtualMachineConfigurationImageReference
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal.VirtualMachineConfigurationImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReference = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal.VirtualMachineConfigurationImageReference { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReference; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).ImageReference = value; }
/// Internal Acessors for VirtualMachineConfigurationOSProfile
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfigurationInternal.VirtualMachineConfigurationOSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfile = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfigurationInternal.VirtualMachineConfigurationOSProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfile = value; }
/// The OS Type
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType? OSConfigurationOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSConfigurationOstype; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSConfigurationOstype = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType? OSConfigurationOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSConfigurationOstype; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSConfigurationOstype = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType)""); }
///
/// Specifies the password of the administrator account.
**Minimum-length (Windows):** 8 characters
**Minimum-length
@@ -94,7 +101,7 @@ public partial class DatabaseConfiguration :
/// Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string OSProfileAdminPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminPassword = value ?? null; }
+ public string OSProfileAdminPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminPassword = value ?? null; }
///
/// Specifies the name of the administrator account.
This property cannot be updated after the VM is created.
@@ -105,7 +112,7 @@ public partial class DatabaseConfiguration :
/// (Windows):** 20 characters.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string OSProfileAdminUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminUsername = value ?? null; }
+ public string OSProfileAdminUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).OSProfileAdminUsername = value ?? null; }
/// Backing field for property.
private string _subnetId;
@@ -115,15 +122,15 @@ public partial class DatabaseConfiguration :
public string SubnetId { get => this._subnetId; set => this._subnetId = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration _virtualMachineConfiguration;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration _virtualMachineConfiguration;
/// Gets or sets the virtual machine configuration.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration VirtualMachineConfiguration { get => (this._virtualMachineConfiguration = this._virtualMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfiguration()); set => this._virtualMachineConfiguration = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration VirtualMachineConfiguration { get => (this._virtualMachineConfiguration = this._virtualMachineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfiguration()); set => this._virtualMachineConfiguration = value; }
/// The virtual machine size.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string VirtualMachineConfigurationVMSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).VMSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).VMSize = value ; }
+ public string VirtualMachineConfigurationVMSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).VMSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfigurationInternal)VirtualMachineConfiguration).VMSize = value ; }
/// Creates an new instance.
public DatabaseConfiguration()
@@ -152,8 +159,19 @@ public partial interface IDatabaseConfiguration :
ReadOnly = false,
Description = @"The disk configuration for the db volume. For HANA, Required volumes are: ['hana/data', 'hana/log', hana/shared', 'usr/sap', 'os'], Optional volume : ['backup'].",
SerializedName = @"diskVolumeConfigurations",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations DiskConfigurationDiskVolumeConfiguration { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations DiskConfigurationDiskVolumeConfiguration { get; set; }
+ ///
+ /// Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to
+ /// provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.",
+ SerializedName = @"id",
+ PossibleTypes = new [] { typeof(string) })]
+ string ImageReferenceId { get; set; }
///
/// Specifies the offer of the platform image or marketplace image used to create the virtual machine.
///
@@ -266,12 +284,17 @@ internal partial interface IDatabaseConfigurationInternal
/// The database type.
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType? DatabaseType { get; set; }
/// Gets or sets the disk configuration.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration DiskConfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration DiskConfiguration { get; set; }
///
/// The disk configuration for the db volume. For HANA, Required volumes are: ['hana/data', 'hana/log', hana/shared', 'usr/sap',
/// 'os'], Optional volume : ['backup'].
///
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations DiskConfigurationDiskVolumeConfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations DiskConfigurationDiskVolumeConfiguration { get; set; }
+ ///
+ /// Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to
+ /// provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.
+ ///
+ string ImageReferenceId { get; set; }
///
/// Specifies the offer of the platform image or marketplace image used to create the virtual machine.
///
@@ -312,15 +335,15 @@ internal partial interface IDatabaseConfigurationInternal
///
string OSProfileAdminUsername { get; set; }
/// Specifies Windows operating system settings on the virtual machine.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration OSProfileOsconfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration OSProfileOsconfiguration { get; set; }
/// The subnet id.
string SubnetId { get; set; }
/// Gets or sets the virtual machine configuration.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineConfiguration VirtualMachineConfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineConfiguration VirtualMachineConfiguration { get; set; }
/// The image reference.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference VirtualMachineConfigurationImageReference { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference VirtualMachineConfigurationImageReference { get; set; }
/// The OS profile.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile VirtualMachineConfigurationOSProfile { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile VirtualMachineConfigurationOSProfile { get; set; }
/// The virtual machine size.
string VirtualMachineConfigurationVMSize { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseConfiguration.json.cs
similarity index 93%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseConfiguration.json.cs
index 76e8e0e560e7..6d6030cce321 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -65,8 +65,8 @@ internal DatabaseConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runt
{
return;
}
- {_virtualMachineConfiguration = If( json?.PropertyT("virtualMachineConfiguration"), out var __jsonVirtualMachineConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineConfiguration.FromJson(__jsonVirtualMachineConfiguration) : VirtualMachineConfiguration;}
- {_diskConfiguration = If( json?.PropertyT("diskConfiguration"), out var __jsonDiskConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfiguration.FromJson(__jsonDiskConfiguration) : DiskConfiguration;}
+ {_virtualMachineConfiguration = If( json?.PropertyT("virtualMachineConfiguration"), out var __jsonVirtualMachineConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineConfiguration.FromJson(__jsonVirtualMachineConfiguration) : VirtualMachineConfiguration;}
+ {_diskConfiguration = If( json?.PropertyT("diskConfiguration"), out var __jsonDiskConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskConfiguration.FromJson(__jsonDiskConfiguration) : DiskConfiguration;}
{_databaseType = If( json?.PropertyT("databaseType"), out var __jsonDatabaseType) ? (string)__jsonDatabaseType : (string)DatabaseType;}
{_subnetId = If( json?.PropertyT("subnetId"), out var __jsonSubnetId) ? (string)__jsonSubnetId : (string)SubnetId;}
{_instanceCount = If( json?.PropertyT("instanceCount"), out var __jsonInstanceCount) ? (long)__jsonInstanceCount : InstanceCount;}
@@ -74,13 +74,13 @@ internal DatabaseConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runt
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new DatabaseConfiguration(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseServerFullResourceNames.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseServerFullResourceNames.PowerShell.cs
similarity index 59%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseServerFullResourceNames.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseServerFullResourceNames.PowerShell.cs
index ef78d76cc344..70cd37a2eeec 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseServerFullResourceNames.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseServerFullResourceNames.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -66,7 +66,7 @@ public partial class DatabaseServerFullResourceNames
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.
@@ -81,37 +81,37 @@ internal DatabaseServerFullResourceNames(global::System.Collections.IDictionary
// actually deserialize
if (content.Contains("LoadBalancer"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames) content.GetValueForProperty("LoadBalancer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNamesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames) content.GetValueForProperty("LoadBalancer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerResourceNamesTypeConverter.ConvertFrom);
}
if (content.Contains("VirtualMachine"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).VirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[]) content.GetValueForProperty("VirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).VirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).VirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[]) content.GetValueForProperty("VirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).VirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
}
if (content.Contains("AvailabilitySetName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).AvailabilitySetName = (string) content.GetValueForProperty("AvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).AvailabilitySetName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).AvailabilitySetName = (string) content.GetValueForProperty("AvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).AvailabilitySetName, global::System.Convert.ToString);
}
if (content.Contains("LoadBalancerName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerName = (string) content.GetValueForProperty("LoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerName = (string) content.GetValueForProperty("LoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerName, global::System.Convert.ToString);
}
if (content.Contains("LoadBalancerFrontendIPConfigurationName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName = (string[]) content.GetValueForProperty("LoadBalancerFrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName = (string[]) content.GetValueForProperty("LoadBalancerFrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
}
if (content.Contains("LoadBalancerBackendPoolName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName = (string[]) content.GetValueForProperty("LoadBalancerBackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName = (string[]) content.GetValueForProperty("LoadBalancerBackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
}
if (content.Contains("LoadBalancerHealthProbeName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName = (string[]) content.GetValueForProperty("LoadBalancerHealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName = (string[]) content.GetValueForProperty("LoadBalancerHealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, 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.
@@ -126,59 +126,59 @@ internal DatabaseServerFullResourceNames(global::System.Management.Automation.PS
// actually deserialize
if (content.Contains("LoadBalancer"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames) content.GetValueForProperty("LoadBalancer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNamesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancer = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames) content.GetValueForProperty("LoadBalancer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancer, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerResourceNamesTypeConverter.ConvertFrom);
}
if (content.Contains("VirtualMachine"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).VirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[]) content.GetValueForProperty("VirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).VirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).VirtualMachine = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[]) content.GetValueForProperty("VirtualMachine",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).VirtualMachine, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNamesTypeConverter.ConvertFrom));
}
if (content.Contains("AvailabilitySetName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).AvailabilitySetName = (string) content.GetValueForProperty("AvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).AvailabilitySetName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).AvailabilitySetName = (string) content.GetValueForProperty("AvailabilitySetName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).AvailabilitySetName, global::System.Convert.ToString);
}
if (content.Contains("LoadBalancerName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerName = (string) content.GetValueForProperty("LoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerName = (string) content.GetValueForProperty("LoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerName, global::System.Convert.ToString);
}
if (content.Contains("LoadBalancerFrontendIPConfigurationName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName = (string[]) content.GetValueForProperty("LoadBalancerFrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName = (string[]) content.GetValueForProperty("LoadBalancerFrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerFrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
}
if (content.Contains("LoadBalancerBackendPoolName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName = (string[]) content.GetValueForProperty("LoadBalancerBackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName = (string[]) content.GetValueForProperty("LoadBalancerBackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerBackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
}
if (content.Contains("LoadBalancerHealthProbeName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName = (string[]) content.GetValueForProperty("LoadBalancerHealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName = (string[]) content.GetValueForProperty("LoadBalancerHealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal)this).LoadBalancerHealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, 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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNames DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNames DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DatabaseServerFullResourceNames(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNames DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNames DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DatabaseServerFullResourceNames(content);
}
@@ -188,7 +188,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ID
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNames FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNames FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseServerFullResourceNames.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseServerFullResourceNames.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseServerFullResourceNames.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseServerFullResourceNames.TypeConverter.cs
index af750149d70a..222a60018812 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseServerFullResourceNames.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseServerFullResourceNames.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNames ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNames ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNames).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNames).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseServerFullResourceNames.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseServerFullResourceNames.cs
similarity index 79%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseServerFullResourceNames.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseServerFullResourceNames.cs
index 862b54622718..088cdf4f7752 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseServerFullResourceNames.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseServerFullResourceNames.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401
/// number VMs to be created for database layer.
///
public partial class DatabaseServerFullResourceNames :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNames,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNames,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal
{
/// Backing field for property.
@@ -26,47 +26,47 @@ public partial class DatabaseServerFullResourceNames :
public string AvailabilitySetName { get => this._availabilitySetName; set => this._availabilitySetName = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames _loadBalancer;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames _loadBalancer;
/// The resource names object for load balancer and related resources.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames LoadBalancer { get => (this._loadBalancer = this._loadBalancer ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNames()); set => this._loadBalancer = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames LoadBalancer { get => (this._loadBalancer = this._loadBalancer ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerResourceNames()); set => this._loadBalancer = value; }
///
/// The list of backend pool names. Currently, ACSS deploys only one backend pool and hence, size of this list should be 1
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string[] LoadBalancerBackendPoolName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).BackendPoolName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).BackendPoolName = value ?? null /* arrayOf */; }
+ public string[] LoadBalancerBackendPoolName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).BackendPoolName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).BackendPoolName = value ?? null /* arrayOf */; }
///
/// The list of frontend IP configuration names. If provided as input, size of this list should be 2 for cs layer and should
/// be 1 for database layer.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string[] LoadBalancerFrontendIPConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).FrontendIPConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).FrontendIPConfigurationName = value ?? null /* arrayOf */; }
+ public string[] LoadBalancerFrontendIPConfigurationName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).FrontendIPConfigurationName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).FrontendIPConfigurationName = value ?? null /* arrayOf */; }
///
/// The list of health probe names. If provided as input, size of this list should be 2 for cs layer and should be 1 for database
/// layer.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string[] LoadBalancerHealthProbeName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).HealthProbeName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).HealthProbeName = value ?? null /* arrayOf */; }
+ public string[] LoadBalancerHealthProbeName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).HealthProbeName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).HealthProbeName = value ?? null /* arrayOf */; }
///
/// The full resource name for load balancer. If this value is not provided, load balancer will be name as {ASCS/DB}-loadBalancer.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string LoadBalancerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).LoadBalancerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)LoadBalancer).LoadBalancerName = value ?? null; }
+ public string LoadBalancerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).LoadBalancerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)LoadBalancer).LoadBalancerName = value ?? null; }
/// Internal Acessors for LoadBalancer
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNamesInternal.LoadBalancer { get => (this._loadBalancer = this._loadBalancer ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNames()); set { {_loadBalancer = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNamesInternal.LoadBalancer { get => (this._loadBalancer = this._loadBalancer ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerResourceNames()); set { {_loadBalancer = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[] _virtualMachine;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[] _virtualMachine;
/// The list of virtual machine naming details.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[] VirtualMachine { get => this._virtualMachine; set => this._virtualMachine = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[] VirtualMachine { get => this._virtualMachine; set => this._virtualMachine = value; }
/// Creates an new instance.
public DatabaseServerFullResourceNames()
@@ -137,8 +137,8 @@ public partial interface IDatabaseServerFullResourceNames :
ReadOnly = false,
Description = @"The list of virtual machine naming details.",
SerializedName = @"virtualMachines",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[] VirtualMachine { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[] VirtualMachine { get; set; }
}
/// The full resource names object for database layer resources. The number of entries in this list should be equal to the
@@ -151,7 +151,7 @@ internal partial interface IDatabaseServerFullResourceNamesInternal
///
string AvailabilitySetName { get; set; }
/// The resource names object for load balancer and related resources.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames LoadBalancer { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames LoadBalancer { get; set; }
///
/// The list of backend pool names. Currently, ACSS deploys only one backend pool and hence, size of this list should be 1
///
@@ -171,7 +171,7 @@ internal partial interface IDatabaseServerFullResourceNamesInternal
///
string LoadBalancerName { get; set; }
/// The list of virtual machine naming details.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames[] VirtualMachine { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames[] VirtualMachine { get; set; }
}
}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseServerFullResourceNames.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseServerFullResourceNames.json.cs
similarity index 90%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseServerFullResourceNames.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseServerFullResourceNames.json.cs
index 71149965e65a..0adf79891219 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseServerFullResourceNames.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseServerFullResourceNames.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -68,20 +68,20 @@ internal DatabaseServerFullResourceNames(Microsoft.Azure.PowerShell.Cmdlets.Work
{
return;
}
- {_loadBalancer = If( json?.PropertyT("loadBalancer"), out var __jsonLoadBalancer) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerResourceNames.FromJson(__jsonLoadBalancer) : LoadBalancer;}
- {_virtualMachine = If( json?.PropertyT("virtualMachines"), out var __jsonVirtualMachines) ? If( __jsonVirtualMachines as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IVirtualMachineResourceNames) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.VirtualMachineResourceNames.FromJson(__u) )) ))() : null : VirtualMachine;}
+ {_loadBalancer = If( json?.PropertyT("loadBalancer"), out var __jsonLoadBalancer) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerResourceNames.FromJson(__jsonLoadBalancer) : LoadBalancer;}
+ {_virtualMachine = If( json?.PropertyT("virtualMachines"), out var __jsonVirtualMachines) ? If( __jsonVirtualMachines as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IVirtualMachineResourceNames) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.VirtualMachineResourceNames.FromJson(__u) )) ))() : null : VirtualMachine;}
{_availabilitySetName = If( json?.PropertyT("availabilitySetName"), out var __jsonAvailabilitySetName) ? (string)__jsonAvailabilitySetName : (string)AvailabilitySetName;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNames.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNames.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNames.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNames.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseServerFullResourceNames FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseServerFullResourceNames FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new DatabaseServerFullResourceNames(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseVMDetails.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseVMDetails.PowerShell.cs
similarity index 71%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseVMDetails.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseVMDetails.PowerShell.cs
index f3c4696268bd..65c17f458a07 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseVMDetails.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseVMDetails.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class DatabaseVMDetails
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.
@@ -78,21 +78,21 @@ internal DatabaseVMDetails(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("VirtualMachineId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal)this).VirtualMachineId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal)this).VirtualMachineId, global::System.Convert.ToString);
}
if (content.Contains("Status"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
}
if (content.Contains("StorageDetail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal)this).StorageDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[]) content.GetValueForProperty("StorageDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal)this).StorageDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.StorageInformationTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal)this).StorageDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[]) content.GetValueForProperty("StorageDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal)this).StorageDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.StorageInformationTypeConverter.ConvertFrom));
}
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.
@@ -107,41 +107,41 @@ internal DatabaseVMDetails(global::System.Management.Automation.PSObject content
// actually deserialize
if (content.Contains("VirtualMachineId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal)this).VirtualMachineId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal)this).VirtualMachineId, global::System.Convert.ToString);
}
if (content.Contains("Status"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
}
if (content.Contains("StorageDetail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal)this).StorageDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[]) content.GetValueForProperty("StorageDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal)this).StorageDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.StorageInformationTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal)this).StorageDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[]) content.GetValueForProperty("StorageDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal)this).StorageDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.StorageInformationTypeConverter.ConvertFrom));
}
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.Workloads.Models.Api20230401.IDatabaseVMDetails DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetails DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DatabaseVMDetails(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.Workloads.Models.Api20230401.IDatabaseVMDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DatabaseVMDetails(content);
}
@@ -151,7 +151,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ID
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseVMDetails.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseVMDetails.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseVMDetails.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseVMDetails.TypeConverter.cs
index b987221760ab..0e10063c9045 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseVMDetails.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseVMDetails.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetails ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetails ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetails).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetails).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseVMDetails.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseVMDetails.cs
similarity index 84%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseVMDetails.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseVMDetails.cs
index 1ec0f6f3b99c..03af301bc8f0 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseVMDetails.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseVMDetails.cs
@@ -3,24 +3,24 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Database VM details.
public partial class DatabaseVMDetails :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetails,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetails,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal
{
/// Internal Acessors for Status
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal.Status { get => this._status; set { {_status = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal.Status { get => this._status; set { {_status = value;} } }
/// Internal Acessors for StorageDetail
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal.StorageDetail { get => this._storageDetail; set { {_storageDetail = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal.StorageDetail { get => this._storageDetail; set { {_storageDetail = value;} } }
/// Internal Acessors for VirtualMachineId
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetailsInternal.VirtualMachineId { get => this._virtualMachineId; set { {_virtualMachineId = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetailsInternal.VirtualMachineId { get => this._virtualMachineId; set { {_virtualMachineId = value;} } }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus? _status;
@@ -30,13 +30,13 @@ public partial class DatabaseVMDetails :
public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus? Status { get => this._status; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] _storageDetail;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] _storageDetail;
///
/// Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared Storage.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] StorageDetail { get => this._storageDetail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] StorageDetail { get => this._storageDetail; }
/// Backing field for property.
private string _virtualMachineId;
@@ -70,8 +70,8 @@ public partial interface IDatabaseVMDetails :
ReadOnly = true,
Description = @"Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared Storage.",
SerializedName = @"storageDetails",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] StorageDetail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] StorageDetail { get; }
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
@@ -91,7 +91,7 @@ internal partial interface IDatabaseVMDetailsInternal
///
/// Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared Storage.
///
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation[] StorageDetail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation[] StorageDetail { get; set; }
string VirtualMachineId { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseVMDetails.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseVMDetails.json.cs
similarity index 92%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseVMDetails.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseVMDetails.json.cs
index 2b884e986bf6..3155b4b5bb0c 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DatabaseVMDetails.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DatabaseVMDetails.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -67,18 +67,18 @@ internal DatabaseVMDetails(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.
}
{_virtualMachineId = If( json?.PropertyT("virtualMachineId"), out var __jsonVirtualMachineId) ? (string)__jsonVirtualMachineId : (string)VirtualMachineId;}
{_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;}
- {_storageDetail = If( json?.PropertyT("storageDetails"), out var __jsonStorageDetails) ? If( __jsonStorageDetails as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IStorageInformation) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.StorageInformation.FromJson(__u) )) ))() : null : StorageDetail;}
+ {_storageDetail = If( json?.PropertyT("storageDetails"), out var __jsonStorageDetails) ? If( __jsonStorageDetails as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IStorageInformation) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.StorageInformation.FromJson(__u) )) ))() : null : StorageDetail;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetails.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetails.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetails.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetails.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDatabaseVMDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDatabaseVMDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new DatabaseVMDetails(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeployerVMPackages.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeployerVMPackages.PowerShell.cs
similarity index 80%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeployerVMPackages.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeployerVMPackages.PowerShell.cs
index e6d07e80ac43..331968fba49c 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeployerVMPackages.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeployerVMPackages.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class DeployerVMPackages
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.
@@ -78,17 +78,17 @@ internal DeployerVMPackages(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Url"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackagesInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackagesInternal)this).Url, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackagesInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackagesInternal)this).Url, global::System.Convert.ToString);
}
if (content.Contains("StorageAccountId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackagesInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackagesInternal)this).StorageAccountId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackagesInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackagesInternal)this).StorageAccountId, 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.
@@ -103,37 +103,39 @@ internal DeployerVMPackages(global::System.Management.Automation.PSObject conten
// actually deserialize
if (content.Contains("Url"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackagesInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackagesInternal)this).Url, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackagesInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackagesInternal)this).Url, global::System.Convert.ToString);
}
if (content.Contains("StorageAccountId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackagesInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackagesInternal)this).StorageAccountId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackagesInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackagesInternal)this).StorageAccountId, 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.Workloads.Models.Api20230401.IDeployerVMPackages DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DeployerVMPackages(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.Workloads.Models.Api20230401.IDeployerVMPackages DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DeployerVMPackages(content);
}
@@ -143,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ID
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeployerVMPackages.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeployerVMPackages.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeployerVMPackages.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeployerVMPackages.TypeConverter.cs
index 4542f71fb5b3..3d293a17702d 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeployerVMPackages.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeployerVMPackages.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeployerVMPackages.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeployerVMPackages.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeployerVMPackages.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeployerVMPackages.cs
index b868470c5a61..c8e248c76f7d 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeployerVMPackages.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeployerVMPackages.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Defines the url and storage account ID where deployer VM packages are uploaded
public partial class DeployerVMPackages :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackagesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackagesInternal
{
/// Backing field for property.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeployerVMPackages.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeployerVMPackages.json.cs
similarity index 96%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeployerVMPackages.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeployerVMPackages.json.cs
index 40763903ccbb..f398f50b57d1 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeployerVMPackages.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeployerVMPackages.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -71,13 +71,13 @@ internal DeployerVMPackages(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new DeployerVMPackages(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentConfiguration.PowerShell.cs
similarity index 58%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentConfiguration.PowerShell.cs
index 6a828853255c..ae10071da4c8 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class DeploymentConfiguration
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.
@@ -78,37 +78,37 @@ internal DeploymentConfiguration(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("InfrastructureConfiguration"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).InfrastructureConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration) content.GetValueForProperty("InfrastructureConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).InfrastructureConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.InfrastructureConfigurationTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).InfrastructureConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration) content.GetValueForProperty("InfrastructureConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).InfrastructureConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.InfrastructureConfigurationTypeConverter.ConvertFrom);
}
if (content.Contains("SoftwareConfiguration"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).SoftwareConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfiguration) content.GetValueForProperty("SoftwareConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).SoftwareConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SoftwareConfigurationTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).SoftwareConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfiguration) content.GetValueForProperty("SoftwareConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).SoftwareConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SoftwareConfigurationTypeConverter.ConvertFrom);
}
if (content.Contains("AppLocation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).AppLocation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).AppLocation, global::System.Convert.ToString);
}
if (content.Contains("ConfigurationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType.CreateFrom);
}
if (content.Contains("InfrastructureConfigurationDeploymentType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).InfrastructureConfigurationDeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("InfrastructureConfigurationDeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).InfrastructureConfigurationDeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).InfrastructureConfigurationDeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("InfrastructureConfigurationDeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).InfrastructureConfigurationDeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
}
if (content.Contains("InfrastructureConfigurationAppResourceGroup"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup = (string) content.GetValueForProperty("InfrastructureConfigurationAppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup = (string) content.GetValueForProperty("InfrastructureConfigurationAppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup, global::System.Convert.ToString);
}
if (content.Contains("SoftwareConfigurationSoftwareInstallationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType) content.GetValueForProperty("SoftwareConfigurationSoftwareInstallationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType) content.GetValueForProperty("SoftwareConfigurationSoftwareInstallationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType.CreateFrom);
}
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.
@@ -123,57 +123,59 @@ internal DeploymentConfiguration(global::System.Management.Automation.PSObject c
// actually deserialize
if (content.Contains("InfrastructureConfiguration"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).InfrastructureConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration) content.GetValueForProperty("InfrastructureConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).InfrastructureConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.InfrastructureConfigurationTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).InfrastructureConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration) content.GetValueForProperty("InfrastructureConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).InfrastructureConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.InfrastructureConfigurationTypeConverter.ConvertFrom);
}
if (content.Contains("SoftwareConfiguration"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).SoftwareConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfiguration) content.GetValueForProperty("SoftwareConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).SoftwareConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SoftwareConfigurationTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).SoftwareConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfiguration) content.GetValueForProperty("SoftwareConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).SoftwareConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SoftwareConfigurationTypeConverter.ConvertFrom);
}
if (content.Contains("AppLocation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).AppLocation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).AppLocation, global::System.Convert.ToString);
}
if (content.Contains("ConfigurationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType.CreateFrom);
}
if (content.Contains("InfrastructureConfigurationDeploymentType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).InfrastructureConfigurationDeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("InfrastructureConfigurationDeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).InfrastructureConfigurationDeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).InfrastructureConfigurationDeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("InfrastructureConfigurationDeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).InfrastructureConfigurationDeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
}
if (content.Contains("InfrastructureConfigurationAppResourceGroup"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup = (string) content.GetValueForProperty("InfrastructureConfigurationAppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup = (string) content.GetValueForProperty("InfrastructureConfigurationAppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup, global::System.Convert.ToString);
}
if (content.Contains("SoftwareConfigurationSoftwareInstallationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType) content.GetValueForProperty("SoftwareConfigurationSoftwareInstallationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType) content.GetValueForProperty("SoftwareConfigurationSoftwareInstallationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType.CreateFrom);
}
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.Workloads.Models.Api20230401.IDeploymentConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DeploymentConfiguration(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.Workloads.Models.Api20230401.IDeploymentConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DeploymentConfiguration(content);
}
@@ -183,7 +185,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ID
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentConfiguration.TypeConverter.cs
index 7ffee723fa78..e4bcd89f4302 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentConfiguration.cs
similarity index 71%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentConfiguration.cs
index 5d89b8878843..ef0d7a838b7d 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentConfiguration.cs
@@ -3,21 +3,21 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Deployment Configuration.
public partial class DeploymentConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal,
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfiguration __sapConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapConfiguration();
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfiguration __sapConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapConfiguration();
/// Backing field for property.
private string _appLocation;
@@ -28,39 +28,39 @@ public partial class DeploymentConfiguration :
/// The configuration Type.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType ConfigurationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)__sapConfiguration).ConfigurationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)__sapConfiguration).ConfigurationType = value ; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType ConfigurationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)__sapConfiguration).ConfigurationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)__sapConfiguration).ConfigurationType = value ; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration _infrastructureConfiguration;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration _infrastructureConfiguration;
/// The infrastructure configuration.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration InfrastructureConfiguration { get => (this._infrastructureConfiguration = this._infrastructureConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.InfrastructureConfiguration()); set => this._infrastructureConfiguration = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration InfrastructureConfiguration { get => (this._infrastructureConfiguration = this._infrastructureConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.InfrastructureConfiguration()); set => this._infrastructureConfiguration = value; }
/// The application resource group where SAP system resources will be deployed.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string InfrastructureConfigurationAppResourceGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)InfrastructureConfiguration).AppResourceGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)InfrastructureConfiguration).AppResourceGroup = value ?? null; }
+ public string InfrastructureConfigurationAppResourceGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)InfrastructureConfiguration).AppResourceGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)InfrastructureConfiguration).AppResourceGroup = value ?? null; }
/// The type of SAP deployment, single server or Three tier.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType? InfrastructureConfigurationDeploymentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)InfrastructureConfiguration).DeploymentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)InfrastructureConfiguration).DeploymentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType? InfrastructureConfigurationDeploymentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)InfrastructureConfiguration).DeploymentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)InfrastructureConfiguration).DeploymentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType)""); }
/// Internal Acessors for InfrastructureConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal.InfrastructureConfiguration { get => (this._infrastructureConfiguration = this._infrastructureConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.InfrastructureConfiguration()); set { {_infrastructureConfiguration = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal.InfrastructureConfiguration { get => (this._infrastructureConfiguration = this._infrastructureConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.InfrastructureConfiguration()); set { {_infrastructureConfiguration = value;} } }
/// Internal Acessors for SoftwareConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfigurationInternal.SoftwareConfiguration { get => (this._softwareConfiguration = this._softwareConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SoftwareConfiguration()); set { {_softwareConfiguration = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfigurationInternal.SoftwareConfiguration { get => (this._softwareConfiguration = this._softwareConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SoftwareConfiguration()); set { {_softwareConfiguration = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfiguration _softwareConfiguration;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfiguration _softwareConfiguration;
/// The software configuration.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfiguration SoftwareConfiguration { get => (this._softwareConfiguration = this._softwareConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SoftwareConfiguration()); set => this._softwareConfiguration = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfiguration SoftwareConfiguration { get => (this._softwareConfiguration = this._softwareConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SoftwareConfiguration()); set => this._softwareConfiguration = value; }
/// The SAP software installation Type.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType? SoftwareConfigurationSoftwareInstallationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfigurationInternal)SoftwareConfiguration).SoftwareInstallationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfigurationInternal)SoftwareConfiguration).SoftwareInstallationType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType? SoftwareConfigurationSoftwareInstallationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfigurationInternal)SoftwareConfiguration).SoftwareInstallationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfigurationInternal)SoftwareConfiguration).SoftwareInstallationType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType)""); }
/// Creates an new instance.
public DeploymentConfiguration()
@@ -83,7 +83,7 @@ public DeploymentConfiguration()
/// Deployment Configuration.
public partial interface IDeploymentConfiguration :
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfiguration
{
/// The geo-location where the SAP system is to be created.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
@@ -121,18 +121,18 @@ public partial interface IDeploymentConfiguration :
}
/// Deployment Configuration.
internal partial interface IDeploymentConfigurationInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal
{
/// The geo-location where the SAP system is to be created.
string AppLocation { get; set; }
/// The infrastructure configuration.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration InfrastructureConfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration InfrastructureConfiguration { get; set; }
/// The application resource group where SAP system resources will be deployed.
string InfrastructureConfigurationAppResourceGroup { get; set; }
/// The type of SAP deployment, single server or Three tier.
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType? InfrastructureConfigurationDeploymentType { get; set; }
/// The software configuration.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfiguration SoftwareConfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfiguration SoftwareConfiguration { get; set; }
/// The SAP software installation Type.
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType? SoftwareConfigurationSoftwareInstallationType { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentConfiguration.json.cs
similarity index 92%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentConfiguration.json.cs
index e19252a1e533..63a1dcb02e13 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -65,21 +65,21 @@ internal DeploymentConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Ru
{
return;
}
- __sapConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapConfiguration(json);
- {_infrastructureConfiguration = If( json?.PropertyT("infrastructureConfiguration"), out var __jsonInfrastructureConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.InfrastructureConfiguration.FromJson(__jsonInfrastructureConfiguration) : InfrastructureConfiguration;}
- {_softwareConfiguration = If( json?.PropertyT("softwareConfiguration"), out var __jsonSoftwareConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SoftwareConfiguration.FromJson(__jsonSoftwareConfiguration) : SoftwareConfiguration;}
+ __sapConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapConfiguration(json);
+ {_infrastructureConfiguration = If( json?.PropertyT("infrastructureConfiguration"), out var __jsonInfrastructureConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.InfrastructureConfiguration.FromJson(__jsonInfrastructureConfiguration) : InfrastructureConfiguration;}
+ {_softwareConfiguration = If( json?.PropertyT("softwareConfiguration"), out var __jsonSoftwareConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SoftwareConfiguration.FromJson(__jsonSoftwareConfiguration) : SoftwareConfiguration;}
{_appLocation = If( json?.PropertyT("appLocation"), out var __jsonAppLocation) ? (string)__jsonAppLocation : (string)AppLocation;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new DeploymentConfiguration(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentWithOSConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentWithOSConfiguration.PowerShell.cs
similarity index 50%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentWithOSConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentWithOSConfiguration.PowerShell.cs
index b832cab91be4..abf956987b5e 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentWithOSConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentWithOSConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,7 +63,7 @@ public partial class DeploymentWithOSConfiguration
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.
@@ -78,57 +78,57 @@ internal DeploymentWithOSConfiguration(global::System.Collections.IDictionary co
// actually deserialize
if (content.Contains("InfrastructureConfiguration"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration) content.GetValueForProperty("InfrastructureConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.InfrastructureConfigurationTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration) content.GetValueForProperty("InfrastructureConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.InfrastructureConfigurationTypeConverter.ConvertFrom);
}
if (content.Contains("SoftwareConfiguration"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).SoftwareConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfiguration) content.GetValueForProperty("SoftwareConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).SoftwareConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SoftwareConfigurationTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).SoftwareConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfiguration) content.GetValueForProperty("SoftwareConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).SoftwareConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SoftwareConfigurationTypeConverter.ConvertFrom);
}
if (content.Contains("OSSapConfiguration"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).OSSapConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfiguration) content.GetValueForProperty("OSSapConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).OSSapConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSSapConfigurationTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).OSSapConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration) content.GetValueForProperty("OSSapConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).OSSapConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSSapConfigurationTypeConverter.ConvertFrom);
}
if (content.Contains("AppLocation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).AppLocation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).AppLocation, global::System.Convert.ToString);
}
if (content.Contains("ConfigurationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType.CreateFrom);
}
if (content.Contains("InfrastructureConfigurationDeploymentType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationDeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("InfrastructureConfigurationDeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationDeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationDeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("InfrastructureConfigurationDeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationDeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
}
if (content.Contains("InfrastructureConfigurationAppResourceGroup"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup = (string) content.GetValueForProperty("InfrastructureConfigurationAppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup = (string) content.GetValueForProperty("InfrastructureConfigurationAppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup, global::System.Convert.ToString);
}
if (content.Contains("SoftwareConfigurationSoftwareInstallationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType) content.GetValueForProperty("SoftwareConfigurationSoftwareInstallationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType) content.GetValueForProperty("SoftwareConfigurationSoftwareInstallationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType.CreateFrom);
}
if (content.Contains("OSSapConfigurationDeployerVmpackage"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationDeployerVmpackage = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages) content.GetValueForProperty("OSSapConfigurationDeployerVmpackage",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationDeployerVmpackage, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DeployerVMPackagesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationDeployerVmpackage = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages) content.GetValueForProperty("OSSapConfigurationDeployerVmpackage",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationDeployerVmpackage, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DeployerVMPackagesTypeConverter.ConvertFrom);
}
if (content.Contains("OSSapConfigurationSapFqdn"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationSapFqdn = (string) content.GetValueForProperty("OSSapConfigurationSapFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationSapFqdn, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationSapFqdn = (string) content.GetValueForProperty("OSSapConfigurationSapFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationSapFqdn, global::System.Convert.ToString);
}
if (content.Contains("DeployerVMPackageUrl"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageUrl = (string) content.GetValueForProperty("DeployerVMPackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageUrl, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageUrl = (string) content.GetValueForProperty("DeployerVMPackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageUrl, global::System.Convert.ToString);
}
if (content.Contains("DeployerVMPackageStorageAccountId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageStorageAccountId = (string) content.GetValueForProperty("DeployerVMPackageStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageStorageAccountId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageStorageAccountId = (string) content.GetValueForProperty("DeployerVMPackageStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageStorageAccountId, 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.
@@ -143,79 +143,79 @@ internal DeploymentWithOSConfiguration(global::System.Management.Automation.PSOb
// actually deserialize
if (content.Contains("InfrastructureConfiguration"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration) content.GetValueForProperty("InfrastructureConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.InfrastructureConfigurationTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration) content.GetValueForProperty("InfrastructureConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.InfrastructureConfigurationTypeConverter.ConvertFrom);
}
if (content.Contains("SoftwareConfiguration"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).SoftwareConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfiguration) content.GetValueForProperty("SoftwareConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).SoftwareConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SoftwareConfigurationTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).SoftwareConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfiguration) content.GetValueForProperty("SoftwareConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).SoftwareConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SoftwareConfigurationTypeConverter.ConvertFrom);
}
if (content.Contains("OSSapConfiguration"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).OSSapConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfiguration) content.GetValueForProperty("OSSapConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).OSSapConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSSapConfigurationTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).OSSapConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration) content.GetValueForProperty("OSSapConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).OSSapConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSSapConfigurationTypeConverter.ConvertFrom);
}
if (content.Contains("AppLocation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).AppLocation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).AppLocation, global::System.Convert.ToString);
}
if (content.Contains("ConfigurationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType.CreateFrom);
}
if (content.Contains("InfrastructureConfigurationDeploymentType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationDeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("InfrastructureConfigurationDeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationDeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationDeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("InfrastructureConfigurationDeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationDeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
}
if (content.Contains("InfrastructureConfigurationAppResourceGroup"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup = (string) content.GetValueForProperty("InfrastructureConfigurationAppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup = (string) content.GetValueForProperty("InfrastructureConfigurationAppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).InfrastructureConfigurationAppResourceGroup, global::System.Convert.ToString);
}
if (content.Contains("SoftwareConfigurationSoftwareInstallationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType) content.GetValueForProperty("SoftwareConfigurationSoftwareInstallationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType) content.GetValueForProperty("SoftwareConfigurationSoftwareInstallationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).SoftwareConfigurationSoftwareInstallationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType.CreateFrom);
}
if (content.Contains("OSSapConfigurationDeployerVmpackage"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationDeployerVmpackage = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages) content.GetValueForProperty("OSSapConfigurationDeployerVmpackage",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationDeployerVmpackage, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DeployerVMPackagesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationDeployerVmpackage = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages) content.GetValueForProperty("OSSapConfigurationDeployerVmpackage",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationDeployerVmpackage, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DeployerVMPackagesTypeConverter.ConvertFrom);
}
if (content.Contains("OSSapConfigurationSapFqdn"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationSapFqdn = (string) content.GetValueForProperty("OSSapConfigurationSapFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationSapFqdn, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationSapFqdn = (string) content.GetValueForProperty("OSSapConfigurationSapFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).OSSapConfigurationSapFqdn, global::System.Convert.ToString);
}
if (content.Contains("DeployerVMPackageUrl"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageUrl = (string) content.GetValueForProperty("DeployerVMPackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageUrl, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageUrl = (string) content.GetValueForProperty("DeployerVMPackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageUrl, global::System.Convert.ToString);
}
if (content.Contains("DeployerVMPackageStorageAccountId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageStorageAccountId = (string) content.GetValueForProperty("DeployerVMPackageStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageStorageAccountId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageStorageAccountId = (string) content.GetValueForProperty("DeployerVMPackageStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal)this).DeployerVMPackageStorageAccountId, 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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DeploymentWithOSConfiguration(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DeploymentWithOSConfiguration(content);
}
@@ -225,7 +225,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ID
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentWithOSConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentWithOSConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentWithOSConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentWithOSConfiguration.TypeConverter.cs
index e79721b755cf..8b88a40d7d52 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentWithOSConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentWithOSConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentWithOSConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentWithOSConfiguration.cs
similarity index 67%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentWithOSConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentWithOSConfiguration.cs
index 990a51eba71e..a42779816d6b 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentWithOSConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentWithOSConfiguration.cs
@@ -3,21 +3,21 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Deployment along with OS Configuration.
public partial class DeploymentWithOSConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal,
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfiguration __sapConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapConfiguration();
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfiguration __sapConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapConfiguration();
/// Backing field for property.
private string _appLocation;
@@ -28,64 +28,64 @@ public partial class DeploymentWithOSConfiguration :
/// The configuration Type.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType ConfigurationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)__sapConfiguration).ConfigurationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)__sapConfiguration).ConfigurationType = value ; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType ConfigurationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)__sapConfiguration).ConfigurationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)__sapConfiguration).ConfigurationType = value ; }
/// The deployer VM packages storage account id
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string DeployerVMPackageStorageAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)OSSapConfiguration).DeployerVMPackageStorageAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)OSSapConfiguration).DeployerVMPackageStorageAccountId = value ?? null; }
+ public string DeployerVMPackageStorageAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)OSSapConfiguration).DeployerVMPackageStorageAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)OSSapConfiguration).DeployerVMPackageStorageAccountId = value ?? null; }
/// The URL to the deployer VM packages file.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string DeployerVMPackageUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)OSSapConfiguration).DeployerVMPackageUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)OSSapConfiguration).DeployerVMPackageUrl = value ?? null; }
+ public string DeployerVMPackageUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)OSSapConfiguration).DeployerVMPackageUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)OSSapConfiguration).DeployerVMPackageUrl = value ?? null; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration _infrastructureConfiguration;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration _infrastructureConfiguration;
/// The infrastructure configuration.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration InfrastructureConfiguration { get => (this._infrastructureConfiguration = this._infrastructureConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.InfrastructureConfiguration()); set => this._infrastructureConfiguration = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration InfrastructureConfiguration { get => (this._infrastructureConfiguration = this._infrastructureConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.InfrastructureConfiguration()); set => this._infrastructureConfiguration = value; }
/// The application resource group where SAP system resources will be deployed.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string InfrastructureConfigurationAppResourceGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)InfrastructureConfiguration).AppResourceGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)InfrastructureConfiguration).AppResourceGroup = value ?? null; }
+ public string InfrastructureConfigurationAppResourceGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)InfrastructureConfiguration).AppResourceGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)InfrastructureConfiguration).AppResourceGroup = value ?? null; }
/// The type of SAP deployment, single server or Three tier.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType? InfrastructureConfigurationDeploymentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)InfrastructureConfiguration).DeploymentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)InfrastructureConfiguration).DeploymentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType? InfrastructureConfigurationDeploymentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)InfrastructureConfiguration).DeploymentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)InfrastructureConfiguration).DeploymentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType)""); }
/// Internal Acessors for InfrastructureConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal.InfrastructureConfiguration { get => (this._infrastructureConfiguration = this._infrastructureConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.InfrastructureConfiguration()); set { {_infrastructureConfiguration = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal.InfrastructureConfiguration { get => (this._infrastructureConfiguration = this._infrastructureConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.InfrastructureConfiguration()); set { {_infrastructureConfiguration = value;} } }
/// Internal Acessors for OSSapConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal.OSSapConfiguration { get => (this._oSSapConfiguration = this._oSSapConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSSapConfiguration()); set { {_oSSapConfiguration = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal.OSSapConfiguration { get => (this._oSSapConfiguration = this._oSSapConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSSapConfiguration()); set { {_oSSapConfiguration = value;} } }
/// Internal Acessors for OSSapConfigurationDeployerVmpackage
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal.OSSapConfigurationDeployerVmpackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)OSSapConfiguration).DeployerVMPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)OSSapConfiguration).DeployerVMPackage = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal.OSSapConfigurationDeployerVmpackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)OSSapConfiguration).DeployerVMPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)OSSapConfiguration).DeployerVMPackage = value; }
/// Internal Acessors for SoftwareConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfigurationInternal.SoftwareConfiguration { get => (this._softwareConfiguration = this._softwareConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SoftwareConfiguration()); set { {_softwareConfiguration = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfigurationInternal.SoftwareConfiguration { get => (this._softwareConfiguration = this._softwareConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SoftwareConfiguration()); set { {_softwareConfiguration = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfiguration _oSSapConfiguration;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration _oSSapConfiguration;
/// The OS and SAP configuration.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfiguration OSSapConfiguration { get => (this._oSSapConfiguration = this._oSSapConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSSapConfiguration()); set => this._oSSapConfiguration = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration OSSapConfiguration { get => (this._oSSapConfiguration = this._oSSapConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSSapConfiguration()); set => this._oSSapConfiguration = value; }
/// The FQDN to set for the SAP system
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string OSSapConfigurationSapFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)OSSapConfiguration).SapFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)OSSapConfiguration).SapFqdn = value ?? null; }
+ public string OSSapConfigurationSapFqdn { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)OSSapConfiguration).SapFqdn; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)OSSapConfiguration).SapFqdn = value ?? null; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfiguration _softwareConfiguration;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfiguration _softwareConfiguration;
/// The software configuration.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfiguration SoftwareConfiguration { get => (this._softwareConfiguration = this._softwareConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SoftwareConfiguration()); set => this._softwareConfiguration = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfiguration SoftwareConfiguration { get => (this._softwareConfiguration = this._softwareConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SoftwareConfiguration()); set => this._softwareConfiguration = value; }
/// The SAP software installation Type.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType? SoftwareConfigurationSoftwareInstallationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfigurationInternal)SoftwareConfiguration).SoftwareInstallationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfigurationInternal)SoftwareConfiguration).SoftwareInstallationType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType? SoftwareConfigurationSoftwareInstallationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfigurationInternal)SoftwareConfiguration).SoftwareInstallationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfigurationInternal)SoftwareConfiguration).SoftwareInstallationType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType)""); }
/// Creates an new instance.
public DeploymentWithOSConfiguration()
@@ -108,7 +108,7 @@ public DeploymentWithOSConfiguration()
/// Deployment along with OS Configuration.
public partial interface IDeploymentWithOSConfiguration :
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfiguration
{
/// The geo-location where the SAP system is to be created.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
@@ -170,7 +170,7 @@ public partial interface IDeploymentWithOSConfiguration :
}
/// Deployment along with OS Configuration.
internal partial interface IDeploymentWithOSConfigurationInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal
{
/// The geo-location where the SAP system is to be created.
string AppLocation { get; set; }
@@ -179,19 +179,19 @@ internal partial interface IDeploymentWithOSConfigurationInternal :
/// The URL to the deployer VM packages file.
string DeployerVMPackageUrl { get; set; }
/// The infrastructure configuration.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration InfrastructureConfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration InfrastructureConfiguration { get; set; }
/// The application resource group where SAP system resources will be deployed.
string InfrastructureConfigurationAppResourceGroup { get; set; }
/// The type of SAP deployment, single server or Three tier.
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType? InfrastructureConfigurationDeploymentType { get; set; }
/// The OS and SAP configuration.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfiguration OSSapConfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration OSSapConfiguration { get; set; }
/// The url and storage account ID where deployer VM packages are uploaded
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages OSSapConfigurationDeployerVmpackage { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages OSSapConfigurationDeployerVmpackage { get; set; }
/// The FQDN to set for the SAP system
string OSSapConfigurationSapFqdn { get; set; }
/// The software configuration.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfiguration SoftwareConfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfiguration SoftwareConfiguration { get; set; }
/// The SAP software installation Type.
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType? SoftwareConfigurationSoftwareInstallationType { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentWithOSConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentWithOSConfiguration.json.cs
similarity index 90%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentWithOSConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentWithOSConfiguration.json.cs
index 9963e8996467..a71cb295a879 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DeploymentWithOSConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DeploymentWithOSConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -65,22 +65,22 @@ internal DeploymentWithOSConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Worklo
{
return;
}
- __sapConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapConfiguration(json);
- {_infrastructureConfiguration = If( json?.PropertyT("infrastructureConfiguration"), out var __jsonInfrastructureConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.InfrastructureConfiguration.FromJson(__jsonInfrastructureConfiguration) : InfrastructureConfiguration;}
- {_softwareConfiguration = If( json?.PropertyT("softwareConfiguration"), out var __jsonSoftwareConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SoftwareConfiguration.FromJson(__jsonSoftwareConfiguration) : SoftwareConfiguration;}
- {_oSSapConfiguration = If( json?.PropertyT("osSapConfiguration"), out var __jsonOSSapConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSSapConfiguration.FromJson(__jsonOSSapConfiguration) : OSSapConfiguration;}
+ __sapConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapConfiguration(json);
+ {_infrastructureConfiguration = If( json?.PropertyT("infrastructureConfiguration"), out var __jsonInfrastructureConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.InfrastructureConfiguration.FromJson(__jsonInfrastructureConfiguration) : InfrastructureConfiguration;}
+ {_softwareConfiguration = If( json?.PropertyT("softwareConfiguration"), out var __jsonSoftwareConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SoftwareConfiguration.FromJson(__jsonSoftwareConfiguration) : SoftwareConfiguration;}
+ {_oSSapConfiguration = If( json?.PropertyT("osSapConfiguration"), out var __jsonOSSapConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSSapConfiguration.FromJson(__jsonOSSapConfiguration) : OSSapConfiguration;}
{_appLocation = If( json?.PropertyT("appLocation"), out var __jsonAppLocation) ? (string)__jsonAppLocation : (string)AppLocation;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeploymentWithOSConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeploymentWithOSConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new DeploymentWithOSConfiguration(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiscoveryConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiscoveryConfiguration.PowerShell.cs
similarity index 71%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiscoveryConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiscoveryConfiguration.PowerShell.cs
index 2e18f27fccf8..24726b8ee96b 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiscoveryConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiscoveryConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,33 +63,35 @@ public partial class DiscoveryConfiguration
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.Workloads.Models.Api20230401.IDiscoveryConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DiscoveryConfiguration(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.Workloads.Models.Api20230401.IDiscoveryConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DiscoveryConfiguration(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -104,25 +106,25 @@ internal DiscoveryConfiguration(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("CentralServerVMId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfigurationInternal)this).CentralServerVMId = (string) content.GetValueForProperty("CentralServerVMId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfigurationInternal)this).CentralServerVMId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfigurationInternal)this).CentralServerVMId = (string) content.GetValueForProperty("CentralServerVMId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfigurationInternal)this).CentralServerVMId, global::System.Convert.ToString);
}
if (content.Contains("ManagedRgStorageAccountName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfigurationInternal)this).ManagedRgStorageAccountName = (string) content.GetValueForProperty("ManagedRgStorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfigurationInternal)this).ManagedRgStorageAccountName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfigurationInternal)this).ManagedRgStorageAccountName = (string) content.GetValueForProperty("ManagedRgStorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfigurationInternal)this).ManagedRgStorageAccountName, global::System.Convert.ToString);
}
if (content.Contains("AppLocation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfigurationInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfigurationInternal)this).AppLocation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfigurationInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfigurationInternal)this).AppLocation, global::System.Convert.ToString);
}
if (content.Contains("ConfigurationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType.CreateFrom);
}
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.
@@ -137,19 +139,19 @@ internal DiscoveryConfiguration(global::System.Management.Automation.PSObject co
// actually deserialize
if (content.Contains("CentralServerVMId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfigurationInternal)this).CentralServerVMId = (string) content.GetValueForProperty("CentralServerVMId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfigurationInternal)this).CentralServerVMId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfigurationInternal)this).CentralServerVMId = (string) content.GetValueForProperty("CentralServerVMId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfigurationInternal)this).CentralServerVMId, global::System.Convert.ToString);
}
if (content.Contains("ManagedRgStorageAccountName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfigurationInternal)this).ManagedRgStorageAccountName = (string) content.GetValueForProperty("ManagedRgStorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfigurationInternal)this).ManagedRgStorageAccountName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfigurationInternal)this).ManagedRgStorageAccountName = (string) content.GetValueForProperty("ManagedRgStorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfigurationInternal)this).ManagedRgStorageAccountName, global::System.Convert.ToString);
}
if (content.Contains("AppLocation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfigurationInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfigurationInternal)this).AppLocation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfigurationInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfigurationInternal)this).AppLocation, global::System.Convert.ToString);
}
if (content.Contains("ConfigurationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType.CreateFrom);
}
AfterDeserializePSObject(content);
}
@@ -159,7 +161,7 @@ internal DiscoveryConfiguration(global::System.Management.Automation.PSObject co
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiscoveryConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiscoveryConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiscoveryConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiscoveryConfiguration.TypeConverter.cs
index aedde7a0af1f..317ff6c9f647 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiscoveryConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiscoveryConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiscoveryConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiscoveryConfiguration.cs
similarity index 89%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiscoveryConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiscoveryConfiguration.cs
index c5355de935bf..9cb84a5c7a93 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiscoveryConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiscoveryConfiguration.cs
@@ -3,21 +3,21 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Discovery Details.
public partial class DiscoveryConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfigurationInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfigurationInternal,
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfiguration __sapConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapConfiguration();
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfiguration __sapConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapConfiguration();
/// Backing field for property.
private string _appLocation;
@@ -35,7 +35,7 @@ public partial class DiscoveryConfiguration :
/// The configuration Type.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType ConfigurationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)__sapConfiguration).ConfigurationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal)__sapConfiguration).ConfigurationType = value ; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapConfigurationType ConfigurationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)__sapConfiguration).ConfigurationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal)__sapConfiguration).ConfigurationType = value ; }
/// Backing field for property.
private string _managedRgStorageAccountName;
@@ -49,7 +49,7 @@ public partial class DiscoveryConfiguration :
public string ManagedRgStorageAccountName { get => this._managedRgStorageAccountName; set => this._managedRgStorageAccountName = value; }
/// Internal Acessors for AppLocation
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfigurationInternal.AppLocation { get => this._appLocation; set { {_appLocation = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfigurationInternal.AppLocation { get => this._appLocation; set { {_appLocation = value;} } }
/// Creates an new instance.
public DiscoveryConfiguration()
@@ -72,7 +72,7 @@ public DiscoveryConfiguration()
/// Discovery Details.
public partial interface IDiscoveryConfiguration :
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfiguration
{
/// The geo-location where the SAP system exists.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
@@ -106,7 +106,7 @@ public partial interface IDiscoveryConfiguration :
}
/// Discovery Details.
internal partial interface IDiscoveryConfigurationInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapConfigurationInternal
{
/// The geo-location where the SAP system exists.
string AppLocation { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiscoveryConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiscoveryConfiguration.json.cs
similarity index 95%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiscoveryConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiscoveryConfiguration.json.cs
index d4b00812bd44..ce64713a7f05 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiscoveryConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiscoveryConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -65,7 +65,7 @@ internal DiscoveryConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Run
{
return;
}
- __sapConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapConfiguration(json);
+ __sapConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapConfiguration(json);
{_centralServerVMId = If( json?.PropertyT("centralServerVmId"), out var __jsonCentralServerVMId) ? (string)__jsonCentralServerVMId : (string)CentralServerVMId;}
{_managedRgStorageAccountName = If( json?.PropertyT("managedRgStorageAccountName"), out var __jsonManagedRgStorageAccountName) ? (string)__jsonManagedRgStorageAccountName : (string)ManagedRgStorageAccountName;}
{_appLocation = If( json?.PropertyT("appLocation"), out var __jsonAppLocation) ? (string)__jsonAppLocation : (string)AppLocation;}
@@ -73,13 +73,13 @@ internal DiscoveryConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Run
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiscoveryConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiscoveryConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new DiscoveryConfiguration(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfiguration.PowerShell.cs
similarity index 80%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfiguration.PowerShell.cs
index df1580c592c6..8a23f3e219f9 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,33 +63,33 @@ public partial class DiskConfiguration
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.Workloads.Models.Api20230401.IDiskConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DiskConfiguration(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.Workloads.Models.Api20230401.IDiskConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DiskConfiguration(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -104,13 +104,13 @@ internal DiskConfiguration(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("DiskVolumeConfiguration"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationInternal)this).DiskVolumeConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations) content.GetValueForProperty("DiskVolumeConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationInternal)this).DiskVolumeConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationDiskVolumeConfigurationsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationInternal)this).DiskVolumeConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations) content.GetValueForProperty("DiskVolumeConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationInternal)this).DiskVolumeConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskConfigurationDiskVolumeConfigurationsTypeConverter.ConvertFrom);
}
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.
@@ -125,7 +125,7 @@ internal DiskConfiguration(global::System.Management.Automation.PSObject content
// actually deserialize
if (content.Contains("DiskVolumeConfiguration"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationInternal)this).DiskVolumeConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations) content.GetValueForProperty("DiskVolumeConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationInternal)this).DiskVolumeConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationDiskVolumeConfigurationsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationInternal)this).DiskVolumeConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations) content.GetValueForProperty("DiskVolumeConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationInternal)this).DiskVolumeConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskConfigurationDiskVolumeConfigurationsTypeConverter.ConvertFrom);
}
AfterDeserializePSObject(content);
}
@@ -135,7 +135,7 @@ internal DiskConfiguration(global::System.Management.Automation.PSObject content
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfiguration.TypeConverter.cs
index 38059596a28a..72464840db5d 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfiguration.cs
similarity index 77%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfiguration.cs
index f1a2c07c332d..c727149abb7a 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfiguration.cs
@@ -3,25 +3,25 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// The Disk Configuration Details.
public partial class DiskConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations _diskVolumeConfiguration;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations _diskVolumeConfiguration;
///
/// The disk configuration for the db volume. For HANA, Required volumes are: ['hana/data', 'hana/log', hana/shared', 'usr/sap',
/// 'os'], Optional volume : ['backup'].
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations DiskVolumeConfiguration { get => (this._diskVolumeConfiguration = this._diskVolumeConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationDiskVolumeConfigurations()); set => this._diskVolumeConfiguration = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations DiskVolumeConfiguration { get => (this._diskVolumeConfiguration = this._diskVolumeConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskConfigurationDiskVolumeConfigurations()); set => this._diskVolumeConfiguration = value; }
/// Creates an new instance.
public DiskConfiguration()
@@ -42,8 +42,8 @@ public partial interface IDiskConfiguration :
ReadOnly = false,
Description = @"The disk configuration for the db volume. For HANA, Required volumes are: ['hana/data', 'hana/log', hana/shared', 'usr/sap', 'os'], Optional volume : ['backup'].",
SerializedName = @"diskVolumeConfigurations",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations DiskVolumeConfiguration { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations DiskVolumeConfiguration { get; set; }
}
/// The Disk Configuration Details.
@@ -54,7 +54,7 @@ internal partial interface IDiskConfigurationInternal
/// The disk configuration for the db volume. For HANA, Required volumes are: ['hana/data', 'hana/log', hana/shared', 'usr/sap',
/// 'os'], Optional volume : ['backup'].
///
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations DiskVolumeConfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations DiskVolumeConfiguration { get; set; }
}
}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfiguration.json.cs
similarity index 94%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfiguration.json.cs
index 8098f8a0ae85..ea285facde2e 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -65,18 +65,18 @@ internal DiskConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.
{
return;
}
- {_diskVolumeConfiguration = If( json?.PropertyT("diskVolumeConfigurations"), out var __jsonDiskVolumeConfigurations) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationDiskVolumeConfigurations.FromJson(__jsonDiskVolumeConfigurations) : DiskVolumeConfiguration;}
+ {_diskVolumeConfiguration = If( json?.PropertyT("diskVolumeConfigurations"), out var __jsonDiskVolumeConfigurations) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskConfigurationDiskVolumeConfigurations.FromJson(__jsonDiskVolumeConfigurations) : DiskVolumeConfiguration;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new DiskConfiguration(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.PowerShell.cs
similarity index 89%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.PowerShell.cs
index 8f50e62a1cc4..c9bae10316b8 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -66,35 +66,35 @@ public partial class DiskConfigurationDiskVolumeConfigurations
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DiskConfigurationDiskVolumeConfigurations(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DiskConfigurationDiskVolumeConfigurations(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -113,7 +113,7 @@ internal DiskConfigurationDiskVolumeConfigurations(global::System.Collections.ID
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Management.Automation.PSObject content that should be used.
@@ -139,7 +139,7 @@ internal DiskConfigurationDiskVolumeConfigurations(global::System.Management.Aut
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.TypeConverter.cs
index e01434f1aadd..7a3891cda577 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.cs
similarity index 90%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.cs
index ceb720076852..eea37a7a9bf4 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401
/// 'os'], Optional volume : ['backup'].
///
public partial class DiskConfigurationDiskVolumeConfigurations :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurationsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurationsInternal
{
///
@@ -28,7 +28,7 @@ public DiskConfigurationDiskVolumeConfigurations()
/// 'os'], Optional volume : ['backup'].
public partial interface IDiskConfigurationDiskVolumeConfigurations :
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray
{
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.dictionary.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.dictionary.cs
similarity index 66%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.dictionary.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.dictionary.cs
index 36eb7ea66db0..d7f2b6fdac8a 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.dictionary.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.dictionary.cs
@@ -3,28 +3,28 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
public partial class DiskConfigurationDiskVolumeConfigurations :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray
{
- protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary();
+ protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary();
- global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; }
+ global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; }
- int Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; }
+ int Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; }
- global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; }
+ global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; }
- global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; }
+ global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; }
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfiguration this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfiguration this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; }
///
///
- public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfiguration value) => __additionalProperties.Add( key, value);
+ public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfiguration value) => __additionalProperties.Add( key, value);
public void Clear() => __additionalProperties.Clear();
@@ -40,7 +40,7 @@ public void CopyFrom(global::System.Collections.IDictionary source)
{
if ((null != property.Key && null != property.Value))
{
- this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value));
+ this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value));
}
}
}
@@ -55,7 +55,7 @@ public void CopyFrom(global::System.Management.Automation.PSObject source)
{
if ((null != property.Key && null != property.Value))
{
- this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value));
+ this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value));
}
}
}
@@ -66,10 +66,10 @@ public void CopyFrom(global::System.Management.Automation.PSObject source)
///
///
- public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfiguration value) => __additionalProperties.TryGetValue( key, out value);
+ public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfiguration value) => __additionalProperties.TryGetValue( key, out value);
///
- public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskConfigurationDiskVolumeConfigurations source) => source.__additionalProperties;
+ public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskConfigurationDiskVolumeConfigurations source) => source.__additionalProperties;
}
}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.json.cs
similarity index 90%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.json.cs
index 2055c4082675..c429347e17d0 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskConfigurationDiskVolumeConfigurations.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskConfigurationDiskVolumeConfigurations.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -69,18 +69,18 @@ internal DiskConfigurationDiskVolumeConfigurations(Microsoft.Azure.PowerShell.Cm
{
return;
}
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskVolumeConfiguration.FromJson(j) ,exclusions );
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskVolumeConfiguration.FromJson(j) ,exclusions );
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskConfigurationDiskVolumeConfigurations FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskConfigurationDiskVolumeConfigurations FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new DiskConfigurationDiskVolumeConfigurations(json) : null;
}
@@ -106,7 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode ToJson
{
return container;
}
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray)this).AdditionalProperties, container);
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IAssociativeArray)this).AdditionalProperties, container);
AfterToJson(ref container);
return container;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskDetails.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskDetails.PowerShell.cs
similarity index 62%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskDetails.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskDetails.PowerShell.cs
index 6009267198d6..01b855b9e634 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskDetails.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskDetails.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,33 +63,33 @@ public partial class DiskDetails
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.Workloads.Models.Api20230401.IDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DiskDetails(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.Workloads.Models.Api20230401.IDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DiskDetails(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -104,41 +104,41 @@ internal DiskDetails(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Sku"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskSkuTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskSkuTypeConverter.ConvertFrom);
}
if (content.Contains("SizeGb"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).SizeGb = (long?) content.GetValueForProperty("SizeGb",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).SizeGb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).SizeGb = (long?) content.GetValueForProperty("SizeGb",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).SizeGb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("MinimumSupportedDiskCount"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).MinimumSupportedDiskCount = (long?) content.GetValueForProperty("MinimumSupportedDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).MinimumSupportedDiskCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).MinimumSupportedDiskCount = (long?) content.GetValueForProperty("MinimumSupportedDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).MinimumSupportedDiskCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("MaximumSupportedDiskCount"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).MaximumSupportedDiskCount = (long?) content.GetValueForProperty("MaximumSupportedDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).MaximumSupportedDiskCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).MaximumSupportedDiskCount = (long?) content.GetValueForProperty("MaximumSupportedDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).MaximumSupportedDiskCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("IopsReadWrite"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).IopsReadWrite = (long?) content.GetValueForProperty("IopsReadWrite",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).IopsReadWrite, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).IopsReadWrite = (long?) content.GetValueForProperty("IopsReadWrite",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).IopsReadWrite, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("MbpsReadWrite"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).MbpsReadWrite = (long?) content.GetValueForProperty("MbpsReadWrite",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).MbpsReadWrite, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).MbpsReadWrite = (long?) content.GetValueForProperty("MbpsReadWrite",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).MbpsReadWrite, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("DiskTier"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).DiskTier = (string) content.GetValueForProperty("DiskTier",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).DiskTier, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).DiskTier = (string) content.GetValueForProperty("DiskTier",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).DiskTier, global::System.Convert.ToString);
}
if (content.Contains("SkuName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName?) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName?) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName.CreateFrom);
}
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.
@@ -153,35 +153,35 @@ internal DiskDetails(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Sku"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskSkuTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskSkuTypeConverter.ConvertFrom);
}
if (content.Contains("SizeGb"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).SizeGb = (long?) content.GetValueForProperty("SizeGb",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).SizeGb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).SizeGb = (long?) content.GetValueForProperty("SizeGb",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).SizeGb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("MinimumSupportedDiskCount"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).MinimumSupportedDiskCount = (long?) content.GetValueForProperty("MinimumSupportedDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).MinimumSupportedDiskCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).MinimumSupportedDiskCount = (long?) content.GetValueForProperty("MinimumSupportedDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).MinimumSupportedDiskCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("MaximumSupportedDiskCount"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).MaximumSupportedDiskCount = (long?) content.GetValueForProperty("MaximumSupportedDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).MaximumSupportedDiskCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).MaximumSupportedDiskCount = (long?) content.GetValueForProperty("MaximumSupportedDiskCount",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).MaximumSupportedDiskCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("IopsReadWrite"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).IopsReadWrite = (long?) content.GetValueForProperty("IopsReadWrite",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).IopsReadWrite, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).IopsReadWrite = (long?) content.GetValueForProperty("IopsReadWrite",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).IopsReadWrite, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("MbpsReadWrite"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).MbpsReadWrite = (long?) content.GetValueForProperty("MbpsReadWrite",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).MbpsReadWrite, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).MbpsReadWrite = (long?) content.GetValueForProperty("MbpsReadWrite",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).MbpsReadWrite, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("DiskTier"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).DiskTier = (string) content.GetValueForProperty("DiskTier",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).DiskTier, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).DiskTier = (string) content.GetValueForProperty("DiskTier",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).DiskTier, global::System.Convert.ToString);
}
if (content.Contains("SkuName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName?) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName?) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName.CreateFrom);
}
AfterDeserializePSObject(content);
}
@@ -191,7 +191,7 @@ internal DiskDetails(global::System.Management.Automation.PSObject content)
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskDetails.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskDetails.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskDetails.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskDetails.TypeConverter.cs
index 310df0d5221f..a458dffe3964 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskDetails.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskDetails.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetails ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetails ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetails).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetails).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskDetails.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskDetails.cs
similarity index 90%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskDetails.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskDetails.cs
index c4374f41615f..286fff6c8130 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskDetails.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskDetails.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// The supported disk size details for a disk type.
public partial class DiskDetails :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetails,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetails,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal
{
/// Backing field for property.
@@ -42,7 +42,7 @@ public partial class DiskDetails :
public long? MbpsReadWrite { get => this._mbpsReadWrite; set => this._mbpsReadWrite = value; }
/// Internal Acessors for Sku
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetailsInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskSku()); set { {_sku = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetailsInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskSku()); set { {_sku = value;} } }
/// Backing field for property.
private long? _minimumSupportedDiskCount;
@@ -59,17 +59,17 @@ public partial class DiskDetails :
public long? SizeGb { get => this._sizeGb; set => this._sizeGb = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku _sku;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku _sku;
///
/// The type of disk sku. For example, Standard_LRS, Standard_ZRS, Premium_LRS, Premium_ZRS.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskSku()); set => this._sku = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskSku()); set => this._sku = value; }
/// Defines the disk sku name.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName? SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSkuInternal)Sku).Name = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName? SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSkuInternal)Sku).Name = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName)""); }
/// Creates an new instance.
public DiskDetails()
@@ -158,7 +158,7 @@ internal partial interface IDiskDetailsInternal
///
/// The type of disk sku. For example, Standard_LRS, Standard_ZRS, Premium_LRS, Premium_ZRS.
///
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku Sku { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku Sku { get; set; }
/// Defines the disk sku name.
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName? SkuName { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskDetails.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskDetails.json.cs
similarity index 96%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskDetails.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskDetails.json.cs
index 58d4c5911613..294a21c6bf2b 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskDetails.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskDetails.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -65,7 +65,7 @@ internal DiskDetails(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.J
{
return;
}
- {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskSku.FromJson(__jsonSku) : Sku;}
+ {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskSku.FromJson(__jsonSku) : Sku;}
{_sizeGb = If( json?.PropertyT("sizeGB"), out var __jsonSizeGb) ? (long?)__jsonSizeGb : SizeGb;}
{_minimumSupportedDiskCount = If( json?.PropertyT("minimumSupportedDiskCount"), out var __jsonMinimumSupportedDiskCount) ? (long?)__jsonMinimumSupportedDiskCount : MinimumSupportedDiskCount;}
{_maximumSupportedDiskCount = If( json?.PropertyT("maximumSupportedDiskCount"), out var __jsonMaximumSupportedDiskCount) ? (long?)__jsonMaximumSupportedDiskCount : MaximumSupportedDiskCount;}
@@ -76,13 +76,13 @@ internal DiskDetails(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.J
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetails.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetails.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetails.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetails.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new DiskDetails(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskSku.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskSku.PowerShell.cs
similarity index 84%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskSku.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskSku.PowerShell.cs
index 77552abfef18..f7385eb67473 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskSku.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskSku.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -65,33 +65,33 @@ public partial class DiskSku
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.Workloads.Models.Api20230401.IDiskSku DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DiskSku(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.Workloads.Models.Api20230401.IDiskSku DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DiskSku(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -106,13 +106,13 @@ internal DiskSku(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSkuInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName?) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSkuInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSkuInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName?) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSkuInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName.CreateFrom);
}
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.
@@ -127,7 +127,7 @@ internal DiskSku(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Name"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSkuInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName?) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSkuInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSkuInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName?) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSkuInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName.CreateFrom);
}
AfterDeserializePSObject(content);
}
@@ -137,7 +137,7 @@ internal DiskSku(global::System.Management.Automation.PSObject content)
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskSku.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskSku.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskSku.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskSku.TypeConverter.cs
index a93be16224e3..5fd81b8a8ec0 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskSku.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskSku.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskSku.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskSku.cs
similarity index 96%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskSku.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskSku.cs
index 28587fe6557f..37caddb9c9a7 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskSku.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskSku.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401
/// The type of disk sku. For example, Standard_LRS, Standard_ZRS, Premium_LRS, Premium_ZRS.
///
public partial class DiskSku :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSkuInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSkuInternal
{
/// Backing field for property.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskSku.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskSku.json.cs
similarity index 96%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskSku.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskSku.json.cs
index 1a75b0f13567..c5288a7d3875 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskSku.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskSku.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -72,13 +72,13 @@ internal DiskSku(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonO
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new DiskSku(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskVolumeConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskVolumeConfiguration.PowerShell.cs
similarity index 70%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskVolumeConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskVolumeConfiguration.PowerShell.cs
index 34f31d637eb0..9ffecd7d7953 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskVolumeConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskVolumeConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,33 +63,35 @@ public partial class DiskVolumeConfiguration
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.Workloads.Models.Api20230401.IDiskVolumeConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new DiskVolumeConfiguration(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.Workloads.Models.Api20230401.IDiskVolumeConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new DiskVolumeConfiguration(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -104,25 +106,25 @@ internal DiskVolumeConfiguration(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Sku"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskSkuTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskSkuTypeConverter.ConvertFrom);
}
if (content.Contains("Count"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).Count = (long?) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).Count, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).Count = (long?) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).Count, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("SizeGb"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).SizeGb = (long?) content.GetValueForProperty("SizeGb",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).SizeGb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).SizeGb = (long?) content.GetValueForProperty("SizeGb",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).SizeGb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("SkuName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName?) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName?) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName.CreateFrom);
}
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.
@@ -137,19 +139,19 @@ internal DiskVolumeConfiguration(global::System.Management.Automation.PSObject c
// actually deserialize
if (content.Contains("Sku"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskSkuTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskSkuTypeConverter.ConvertFrom);
}
if (content.Contains("Count"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).Count = (long?) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).Count, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).Count = (long?) content.GetValueForProperty("Count",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).Count, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("SizeGb"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).SizeGb = (long?) content.GetValueForProperty("SizeGb",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).SizeGb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).SizeGb = (long?) content.GetValueForProperty("SizeGb",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).SizeGb, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("SkuName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName?) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName?) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName.CreateFrom);
}
AfterDeserializePSObject(content);
}
@@ -159,7 +161,7 @@ internal DiskVolumeConfiguration(global::System.Management.Automation.PSObject c
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskVolumeConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskVolumeConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskVolumeConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskVolumeConfiguration.TypeConverter.cs
index 4fecbb3e4302..ca704e6adc8c 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskVolumeConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskVolumeConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskVolumeConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskVolumeConfiguration.cs
similarity index 83%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskVolumeConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskVolumeConfiguration.cs
index 3cbecc5d53ca..59409a8712ba 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskVolumeConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskVolumeConfiguration.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// The disk configuration required for the selected volume.
public partial class DiskVolumeConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal
{
/// Backing field for property.
@@ -21,7 +21,7 @@ public partial class DiskVolumeConfiguration :
public long? Count { get => this._count; set => this._count = value; }
/// Internal Acessors for Sku
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfigurationInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskSku()); set { {_sku = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfigurationInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskSku()); set { {_sku = value;} } }
/// Backing field for property.
private long? _sizeGb;
@@ -31,15 +31,15 @@ public partial class DiskVolumeConfiguration :
public long? SizeGb { get => this._sizeGb; set => this._sizeGb = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku _sku;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku _sku;
/// The disk SKU details.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskSku()); set => this._sku = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskSku()); set => this._sku = value; }
/// Defines the disk sku name.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName? SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSkuInternal)Sku).Name = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName? SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSkuInternal)Sku).Name = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName)""); }
/// Creates an new instance.
public DiskVolumeConfiguration()
@@ -86,7 +86,7 @@ internal partial interface IDiskVolumeConfigurationInternal
/// The disk size in GB.
long? SizeGb { get; set; }
/// The disk SKU details.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskSku Sku { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskSku Sku { get; set; }
/// Defines the disk sku name.
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.DiskSkuName? SkuName { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskVolumeConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskVolumeConfiguration.json.cs
similarity index 95%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskVolumeConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskVolumeConfiguration.json.cs
index a1a62b577f86..15df5e8df24f 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/DiskVolumeConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/DiskVolumeConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -65,20 +65,20 @@ internal DiskVolumeConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Ru
{
return;
}
- {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DiskSku.FromJson(__jsonSku) : Sku;}
+ {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DiskSku.FromJson(__jsonSku) : Sku;}
{_count = If( json?.PropertyT("count"), out var __jsonCount) ? (long?)__jsonCount : Count;}
{_sizeGb = If( json?.PropertyT("sizeGB"), out var __jsonSizeGb) ? (long?)__jsonSizeGb : SizeGb;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDiskVolumeConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDiskVolumeConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new DiskVolumeConfiguration(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueReplicationServerProperties.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueReplicationServerProperties.PowerShell.cs
similarity index 63%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueReplicationServerProperties.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueReplicationServerProperties.PowerShell.cs
index 83c537d02f9f..7e790b469082 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueReplicationServerProperties.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueReplicationServerProperties.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,35 +63,35 @@ public partial class EnqueueReplicationServerProperties
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new EnqueueReplicationServerProperties(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new EnqueueReplicationServerProperties(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -106,37 +106,37 @@ internal EnqueueReplicationServerProperties(global::System.Collections.IDictiona
// actually deserialize
if (content.Contains("ErsVersion"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).ErsVersion = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType?) content.GetValueForProperty("ErsVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).ErsVersion, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).ErsVersion = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType?) content.GetValueForProperty("ErsVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).ErsVersion, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType.CreateFrom);
}
if (content.Contains("InstanceNo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).InstanceNo, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).InstanceNo, global::System.Convert.ToString);
}
if (content.Contains("Hostname"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
}
if (content.Contains("KernelVersion"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).KernelVersion, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).KernelVersion, global::System.Convert.ToString);
}
if (content.Contains("KernelPatch"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).KernelPatch, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).KernelPatch, global::System.Convert.ToString);
}
if (content.Contains("IPAddress"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
}
if (content.Contains("Health"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
}
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.
@@ -151,31 +151,31 @@ internal EnqueueReplicationServerProperties(global::System.Management.Automation
// actually deserialize
if (content.Contains("ErsVersion"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).ErsVersion = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType?) content.GetValueForProperty("ErsVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).ErsVersion, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).ErsVersion = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType?) content.GetValueForProperty("ErsVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).ErsVersion, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType.CreateFrom);
}
if (content.Contains("InstanceNo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).InstanceNo, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).InstanceNo, global::System.Convert.ToString);
}
if (content.Contains("Hostname"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
}
if (content.Contains("KernelVersion"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).KernelVersion, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).KernelVersion, global::System.Convert.ToString);
}
if (content.Contains("KernelPatch"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).KernelPatch, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).KernelPatch, global::System.Convert.ToString);
}
if (content.Contains("IPAddress"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
}
if (content.Contains("Health"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
}
AfterDeserializePSObject(content);
}
@@ -187,7 +187,7 @@ internal EnqueueReplicationServerProperties(global::System.Management.Automation
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueReplicationServerProperties.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueReplicationServerProperties.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueReplicationServerProperties.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueReplicationServerProperties.TypeConverter.cs
index 47d288d1007a..4a8e20a0fbcc 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueReplicationServerProperties.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueReplicationServerProperties.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueReplicationServerProperties.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueReplicationServerProperties.cs
similarity index 89%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueReplicationServerProperties.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueReplicationServerProperties.cs
index ec2b22f0483f..27042224c080 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueReplicationServerProperties.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueReplicationServerProperties.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Defines the SAP Enqueue Replication Server (ERS) properties.
public partial class EnqueueReplicationServerProperties :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerProperties,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal
{
/// Backing field for property.
@@ -63,25 +63,25 @@ public partial class EnqueueReplicationServerProperties :
public string KernelVersion { get => this._kernelVersion; }
/// Internal Acessors for ErsVersion
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal.ErsVersion { get => this._ersVersion; set { {_ersVersion = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.EnqueueReplicationServerType? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal.ErsVersion { get => this._ersVersion; set { {_ersVersion = value;} } }
/// Internal Acessors for Health
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal.Health { get => this._health; set { {_health = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal.Health { get => this._health; set { {_health = value;} } }
/// Internal Acessors for Hostname
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal.Hostname { get => this._hostname; set { {_hostname = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal.Hostname { get => this._hostname; set { {_hostname = value;} } }
/// Internal Acessors for IPAddress
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal.IPAddress { get => this._iPAddress; set { {_iPAddress = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal.IPAddress { get => this._iPAddress; set { {_iPAddress = value;} } }
/// Internal Acessors for InstanceNo
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal.InstanceNo { get => this._instanceNo; set { {_instanceNo = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal.InstanceNo { get => this._instanceNo; set { {_instanceNo = value;} } }
/// Internal Acessors for KernelPatch
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal.KernelPatch { get => this._kernelPatch; set { {_kernelPatch = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal.KernelPatch { get => this._kernelPatch; set { {_kernelPatch = value;} } }
/// Internal Acessors for KernelVersion
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerPropertiesInternal.KernelVersion { get => this._kernelVersion; set { {_kernelVersion = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerPropertiesInternal.KernelVersion { get => this._kernelVersion; set { {_kernelVersion = value;} } }
/// Creates an new instance.
public EnqueueReplicationServerProperties()
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueReplicationServerProperties.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueReplicationServerProperties.json.cs
similarity index 96%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueReplicationServerProperties.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueReplicationServerProperties.json.cs
index ac0211e8562e..0626e96aaffe 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueReplicationServerProperties.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueReplicationServerProperties.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -76,13 +76,13 @@ internal EnqueueReplicationServerProperties(Microsoft.Azure.PowerShell.Cmdlets.W
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerProperties.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueReplicationServerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueReplicationServerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new EnqueueReplicationServerProperties(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueServerProperties.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueServerProperties.PowerShell.cs
similarity index 72%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueServerProperties.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueServerProperties.PowerShell.cs
index 8e37340f9724..5eecbd292532 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueServerProperties.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueServerProperties.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,33 +63,35 @@ public partial class EnqueueServerProperties
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.Workloads.Models.Api20230401.IEnqueueServerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new EnqueueServerProperties(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.Workloads.Models.Api20230401.IEnqueueServerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new EnqueueServerProperties(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -104,25 +106,25 @@ internal EnqueueServerProperties(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Hostname"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
}
if (content.Contains("IPAddress"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
}
if (content.Contains("Port"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).Port = (long?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).Port, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).Port = (long?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).Port, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("Health"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
}
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.
@@ -137,19 +139,19 @@ internal EnqueueServerProperties(global::System.Management.Automation.PSObject c
// actually deserialize
if (content.Contains("Hostname"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
}
if (content.Contains("IPAddress"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
}
if (content.Contains("Port"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).Port = (long?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).Port, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).Port = (long?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).Port, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("Health"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
}
AfterDeserializePSObject(content);
}
@@ -159,7 +161,7 @@ internal EnqueueServerProperties(global::System.Management.Automation.PSObject c
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueServerProperties.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueServerProperties.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueServerProperties.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueServerProperties.TypeConverter.cs
index 704510148f6c..492b49a9cc98 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueServerProperties.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueServerProperties.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueServerProperties.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueServerProperties.cs
similarity index 90%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueServerProperties.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueServerProperties.cs
index a51340a9d184..3164df72a85e 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueServerProperties.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueServerProperties.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Defines the SAP Enqueue Server properties.
public partial class EnqueueServerProperties :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerProperties,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal
{
/// Backing field for property.
@@ -35,16 +35,16 @@ public partial class EnqueueServerProperties :
public string IPAddress { get => this._iPAddress; }
/// Internal Acessors for Health
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal.Health { get => this._health; set { {_health = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal.Health { get => this._health; set { {_health = value;} } }
/// Internal Acessors for Hostname
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal.Hostname { get => this._hostname; set { {_hostname = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal.Hostname { get => this._hostname; set { {_hostname = value;} } }
/// Internal Acessors for IPAddress
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal.IPAddress { get => this._iPAddress; set { {_iPAddress = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal.IPAddress { get => this._iPAddress; set { {_iPAddress = value;} } }
/// Internal Acessors for Port
- long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerPropertiesInternal.Port { get => this._port; set { {_port = value;} } }
+ long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerPropertiesInternal.Port { get => this._port; set { {_port = value;} } }
/// Backing field for property.
private long? _port;
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueServerProperties.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueServerProperties.json.cs
similarity index 96%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueServerProperties.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueServerProperties.json.cs
index d709fe36bd37..dadfa1872028 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/EnqueueServerProperties.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/EnqueueServerProperties.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -73,13 +73,13 @@ internal EnqueueServerProperties(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Ru
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerProperties.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IEnqueueServerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IEnqueueServerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new EnqueueServerProperties(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ErrorDefinition.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ErrorDefinition.PowerShell.cs
similarity index 73%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ErrorDefinition.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ErrorDefinition.PowerShell.cs
index 0d25d0a84376..231401a73353 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ErrorDefinition.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ErrorDefinition.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,33 +63,33 @@ public partial class ErrorDefinition
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.Workloads.Models.Api20230401.IErrorDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ErrorDefinition(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.Workloads.Models.Api20230401.IErrorDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ErrorDefinition(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -104,21 +104,21 @@ internal ErrorDefinition(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ErrorDefinitionTypeConverter.ConvertFrom));
}
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.
@@ -133,15 +133,15 @@ internal ErrorDefinition(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ErrorDefinitionTypeConverter.ConvertFrom));
}
AfterDeserializePSObject(content);
}
@@ -151,7 +151,7 @@ internal ErrorDefinition(global::System.Management.Automation.PSObject content)
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ErrorDefinition.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ErrorDefinition.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ErrorDefinition.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ErrorDefinition.TypeConverter.cs
index add7241afc03..e190b7ef1542 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ErrorDefinition.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ErrorDefinition.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ErrorDefinition.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ErrorDefinition.cs
similarity index 84%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ErrorDefinition.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ErrorDefinition.cs
index 6bb45281554c..5a996c5f7af5 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ErrorDefinition.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ErrorDefinition.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Error definition.
public partial class ErrorDefinition :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal
{
/// Backing field for property.
@@ -23,11 +23,11 @@ public partial class ErrorDefinition :
public string Code { get => this._code; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[] _detail;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[] _detail;
/// Internal error details.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[] Detail { get => this._detail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[] Detail { get => this._detail; }
/// Backing field for property.
private string _message;
@@ -37,13 +37,13 @@ public partial class ErrorDefinition :
public string Message { get => this._message; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal.Code { get => this._code; set { {_code = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal.Code { get => this._code; set { {_code = value;} } }
/// Internal Acessors for Detail
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal.Detail { get => this._detail; set { {_detail = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal.Detail { get => this._detail; set { {_detail = value;} } }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinitionInternal.Message { get => this._message; set { {_message = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinitionInternal.Message { get => this._message; set { {_message = value;} } }
/// Creates an new instance.
public ErrorDefinition()
@@ -71,8 +71,8 @@ public partial interface IErrorDefinition :
ReadOnly = true,
Description = @"Internal error details.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[] Detail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[] Detail { get; }
/// Description of the error.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
@@ -92,7 +92,7 @@ internal partial interface IErrorDefinitionInternal
///
string Code { get; set; }
/// Internal error details.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[] Detail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[] Detail { get; set; }
/// Description of the error.
string Message { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ErrorDefinition.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ErrorDefinition.json.cs
similarity index 92%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ErrorDefinition.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ErrorDefinition.json.cs
index dd6de818e710..bf40ad10ca09 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ErrorDefinition.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ErrorDefinition.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -67,18 +67,18 @@ internal ErrorDefinition(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Js
}
{_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;}
{_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;}
- {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinition.FromJson(__u) )) ))() : null : Detail;}
+ {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ErrorDefinition.FromJson(__u) )) ))() : null : Detail;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new ErrorDefinition(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ExternalInstallationSoftwareConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ExternalInstallationSoftwareConfiguration.PowerShell.cs
similarity index 76%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ExternalInstallationSoftwareConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ExternalInstallationSoftwareConfiguration.PowerShell.cs
index df1f412a830e..94238e7ddca5 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ExternalInstallationSoftwareConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ExternalInstallationSoftwareConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -65,35 +65,35 @@ public partial class ExternalInstallationSoftwareConfiguration
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IExternalInstallationSoftwareConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IExternalInstallationSoftwareConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ExternalInstallationSoftwareConfiguration(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IExternalInstallationSoftwareConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IExternalInstallationSoftwareConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ExternalInstallationSoftwareConfiguration(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -108,17 +108,17 @@ internal ExternalInstallationSoftwareConfiguration(global::System.Collections.ID
// actually deserialize
if (content.Contains("CentralServerVMId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IExternalInstallationSoftwareConfigurationInternal)this).CentralServerVMId = (string) content.GetValueForProperty("CentralServerVMId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IExternalInstallationSoftwareConfigurationInternal)this).CentralServerVMId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IExternalInstallationSoftwareConfigurationInternal)this).CentralServerVMId = (string) content.GetValueForProperty("CentralServerVMId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IExternalInstallationSoftwareConfigurationInternal)this).CentralServerVMId, global::System.Convert.ToString);
}
if (content.Contains("SoftwareInstallationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfigurationInternal)this).SoftwareInstallationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType) content.GetValueForProperty("SoftwareInstallationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfigurationInternal)this).SoftwareInstallationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfigurationInternal)this).SoftwareInstallationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType) content.GetValueForProperty("SoftwareInstallationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfigurationInternal)this).SoftwareInstallationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType.CreateFrom);
}
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.
@@ -133,11 +133,11 @@ internal ExternalInstallationSoftwareConfiguration(global::System.Management.Aut
// actually deserialize
if (content.Contains("CentralServerVMId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IExternalInstallationSoftwareConfigurationInternal)this).CentralServerVMId = (string) content.GetValueForProperty("CentralServerVMId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IExternalInstallationSoftwareConfigurationInternal)this).CentralServerVMId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IExternalInstallationSoftwareConfigurationInternal)this).CentralServerVMId = (string) content.GetValueForProperty("CentralServerVMId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IExternalInstallationSoftwareConfigurationInternal)this).CentralServerVMId, global::System.Convert.ToString);
}
if (content.Contains("SoftwareInstallationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfigurationInternal)this).SoftwareInstallationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType) content.GetValueForProperty("SoftwareInstallationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfigurationInternal)this).SoftwareInstallationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfigurationInternal)this).SoftwareInstallationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType) content.GetValueForProperty("SoftwareInstallationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfigurationInternal)this).SoftwareInstallationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType.CreateFrom);
}
AfterDeserializePSObject(content);
}
@@ -150,7 +150,7 @@ internal ExternalInstallationSoftwareConfiguration(global::System.Management.Aut
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IExternalInstallationSoftwareConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IExternalInstallationSoftwareConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ExternalInstallationSoftwareConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ExternalInstallationSoftwareConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ExternalInstallationSoftwareConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ExternalInstallationSoftwareConfiguration.TypeConverter.cs
index c10c0f1e2a2d..ead0d8943c09 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ExternalInstallationSoftwareConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ExternalInstallationSoftwareConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IExternalInstallationSoftwareConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IExternalInstallationSoftwareConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IExternalInstallationSoftwareConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IExternalInstallationSoftwareConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ExternalInstallationSoftwareConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ExternalInstallationSoftwareConfiguration.cs
similarity index 83%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ExternalInstallationSoftwareConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ExternalInstallationSoftwareConfiguration.cs
index 8183d26647d0..e36198b4c00a 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ExternalInstallationSoftwareConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ExternalInstallationSoftwareConfiguration.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -11,15 +11,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401
/// The SAP Software configuration Input when the software is installed externally outside the service.
///
public partial class ExternalInstallationSoftwareConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IExternalInstallationSoftwareConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IExternalInstallationSoftwareConfigurationInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IExternalInstallationSoftwareConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IExternalInstallationSoftwareConfigurationInternal,
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfiguration __softwareConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SoftwareConfiguration();
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfiguration __softwareConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SoftwareConfiguration();
/// Backing field for property.
private string _centralServerVMId;
@@ -30,7 +30,7 @@ public partial class ExternalInstallationSoftwareConfiguration :
/// The SAP software installation Type.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType SoftwareInstallationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfigurationInternal)__softwareConfiguration).SoftwareInstallationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfigurationInternal)__softwareConfiguration).SoftwareInstallationType = value ; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapSoftwareInstallationType SoftwareInstallationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfigurationInternal)__softwareConfiguration).SoftwareInstallationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfigurationInternal)__softwareConfiguration).SoftwareInstallationType = value ; }
///
/// Creates an new instance.
@@ -55,7 +55,7 @@ public ExternalInstallationSoftwareConfiguration()
/// The SAP Software configuration Input when the software is installed externally outside the service.
public partial interface IExternalInstallationSoftwareConfiguration :
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfiguration
{
/// The resource ID of the virtual machine containing the central server instance.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
@@ -69,7 +69,7 @@ public partial interface IExternalInstallationSoftwareConfiguration :
}
/// The SAP Software configuration Input when the software is installed externally outside the service.
internal partial interface IExternalInstallationSoftwareConfigurationInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISoftwareConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISoftwareConfigurationInternal
{
/// The resource ID of the virtual machine containing the central server instance.
string CentralServerVMId { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ExternalInstallationSoftwareConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ExternalInstallationSoftwareConfiguration.json.cs
similarity index 94%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ExternalInstallationSoftwareConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ExternalInstallationSoftwareConfiguration.json.cs
index 76555b5703d7..b120d27052d1 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ExternalInstallationSoftwareConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ExternalInstallationSoftwareConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -67,19 +67,19 @@ internal ExternalInstallationSoftwareConfiguration(Microsoft.Azure.PowerShell.Cm
{
return;
}
- __softwareConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SoftwareConfiguration(json);
+ __softwareConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SoftwareConfiguration(json);
{_centralServerVMId = If( json?.PropertyT("centralServerVmId"), out var __jsonCentralServerVMId) ? (string)__jsonCentralServerVMId : (string)CentralServerVMId;}
AfterFromJson(json);
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IExternalInstallationSoftwareConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IExternalInstallationSoftwareConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IExternalInstallationSoftwareConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IExternalInstallationSoftwareConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IExternalInstallationSoftwareConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IExternalInstallationSoftwareConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new ExternalInstallationSoftwareConfiguration(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/FileShareConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/FileShareConfiguration.PowerShell.cs
similarity index 82%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/FileShareConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/FileShareConfiguration.PowerShell.cs
index ef3c82197044..a700eae96805 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/FileShareConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/FileShareConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -66,33 +66,35 @@ public partial class FileShareConfiguration
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.Workloads.Models.Api20230401.IFileShareConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new FileShareConfiguration(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.Workloads.Models.Api20230401.IFileShareConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new FileShareConfiguration(content);
}
///
- /// Deserializes a into a new instance of into a new instance of .
///
/// The global::System.Collections.IDictionary content that should be used.
@@ -107,13 +109,13 @@ internal FileShareConfiguration(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("ConfigurationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType.CreateFrom);
}
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.
@@ -128,7 +130,7 @@ internal FileShareConfiguration(global::System.Management.Automation.PSObject co
// actually deserialize
if (content.Contains("ConfigurationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType.CreateFrom);
}
AfterDeserializePSObject(content);
}
@@ -138,7 +140,7 @@ internal FileShareConfiguration(global::System.Management.Automation.PSObject co
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
/// Serializes this instance to a json string.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/FileShareConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/FileShareConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/FileShareConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/FileShareConfiguration.TypeConverter.cs
index 13fdac5f568f..43d1a00adf2e 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/FileShareConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/FileShareConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/FileShareConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/FileShareConfiguration.cs
similarity index 96%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/FileShareConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/FileShareConfiguration.cs
index d5ba9c359c5d..9d6957dab6e2 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/FileShareConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/FileShareConfiguration.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401
/// option is selected in case of missing input.
///
public partial class FileShareConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal
{
/// Backing field for property.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/FileShareConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/FileShareConfiguration.json.cs
similarity index 93%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/FileShareConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/FileShareConfiguration.json.cs
index 0d0dad91533b..dbc399bdf433 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/FileShareConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/FileShareConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -73,15 +73,15 @@ internal FileShareConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Run
}
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfiguration.
- /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfiguration interface is polymorphic,
- /// and the precise model class that will get deserialized is determined at runtime based on the payload.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfiguration.
+ /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfiguration 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.Workloads.Models.Api20230401.IFileShareConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json))
{
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/GatewayServerProperties.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/GatewayServerProperties.PowerShell.cs
similarity index 78%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/GatewayServerProperties.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/GatewayServerProperties.PowerShell.cs
index 418322641023..d93b97bd10af 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/GatewayServerProperties.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/GatewayServerProperties.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,27 +63,29 @@ public partial class GatewayServerProperties
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.Workloads.Models.Api20230401.IGatewayServerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new GatewayServerProperties(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.Workloads.Models.Api20230401.IGatewayServerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new GatewayServerProperties(content);
}
@@ -93,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IG
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -111,17 +113,17 @@ internal GatewayServerProperties(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Port"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerPropertiesInternal)this).Port = (long?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerPropertiesInternal)this).Port, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerPropertiesInternal)this).Port = (long?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerPropertiesInternal)this).Port, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("Health"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
}
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.
@@ -136,11 +138,11 @@ internal GatewayServerProperties(global::System.Management.Automation.PSObject c
// actually deserialize
if (content.Contains("Port"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerPropertiesInternal)this).Port = (long?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerPropertiesInternal)this).Port, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerPropertiesInternal)this).Port = (long?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerPropertiesInternal)this).Port, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("Health"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/GatewayServerProperties.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/GatewayServerProperties.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/GatewayServerProperties.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/GatewayServerProperties.TypeConverter.cs
index eeac07a78e29..747321858d6c 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/GatewayServerProperties.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/GatewayServerProperties.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/GatewayServerProperties.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/GatewayServerProperties.cs
similarity index 91%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/GatewayServerProperties.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/GatewayServerProperties.cs
index 10d018947620..74f1c001b954 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/GatewayServerProperties.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/GatewayServerProperties.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Defines the SAP Gateway Server properties.
public partial class GatewayServerProperties :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerProperties,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerPropertiesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerPropertiesInternal
{
/// Backing field for property.
@@ -21,10 +21,10 @@ public partial class GatewayServerProperties :
public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Health { get => this._health; }
/// Internal Acessors for Health
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerPropertiesInternal.Health { get => this._health; set { {_health = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerPropertiesInternal.Health { get => this._health; set { {_health = value;} } }
/// Internal Acessors for Port
- long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerPropertiesInternal.Port { get => this._port; set { {_port = value;} } }
+ long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerPropertiesInternal.Port { get => this._port; set { {_port = value;} } }
/// Backing field for property.
private long? _port;
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/GatewayServerProperties.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/GatewayServerProperties.json.cs
similarity index 96%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/GatewayServerProperties.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/GatewayServerProperties.json.cs
index 0977b866dd6f..06c38e311553 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/GatewayServerProperties.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/GatewayServerProperties.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class GatewayServerProperties
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerProperties.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IGatewayServerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IGatewayServerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new GatewayServerProperties(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilityConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilityConfiguration.PowerShell.cs
similarity index 81%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilityConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilityConfiguration.PowerShell.cs
index c07f4acb55f8..46bbd6f954ef 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilityConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilityConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,29 +63,29 @@ public partial class HighAvailabilityConfiguration
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilityConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new HighAvailabilityConfiguration(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilityConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new HighAvailabilityConfiguration(content);
}
@@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IH
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilityConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -113,13 +113,13 @@ internal HighAvailabilityConfiguration(global::System.Collections.IDictionary co
// actually deserialize
if (content.Contains("HighAvailabilityType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfigurationInternal)this).HighAvailabilityType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType) content.GetValueForProperty("HighAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfigurationInternal)this).HighAvailabilityType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilityConfigurationInternal)this).HighAvailabilityType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType) content.GetValueForProperty("HighAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilityConfigurationInternal)this).HighAvailabilityType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType.CreateFrom);
}
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.
@@ -134,7 +134,7 @@ internal HighAvailabilityConfiguration(global::System.Management.Automation.PSOb
// actually deserialize
if (content.Contains("HighAvailabilityType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfigurationInternal)this).HighAvailabilityType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType) content.GetValueForProperty("HighAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfigurationInternal)this).HighAvailabilityType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilityConfigurationInternal)this).HighAvailabilityType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType) content.GetValueForProperty("HighAvailabilityType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilityConfigurationInternal)this).HighAvailabilityType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHighAvailabilityType.CreateFrom);
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilityConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilityConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilityConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilityConfiguration.TypeConverter.cs
index 3e69964edefd..4b733dc332c1 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilityConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilityConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilityConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilityConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilityConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilityConfiguration.cs
similarity index 95%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilityConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilityConfiguration.cs
index 267cf5909c17..f9be7f97738d 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilityConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilityConfiguration.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Gets or sets the high availability configuration.
public partial class HighAvailabilityConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilityConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilityConfigurationInternal
{
/// Backing field for property.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilityConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilityConfiguration.json.cs
similarity index 95%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilityConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilityConfiguration.json.cs
index 19f1804c62d2..d454330fa63a 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilityConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilityConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class HighAvailabilityConfiguration
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilityConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilityConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilityConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilityConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new HighAvailabilityConfiguration(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilitySoftwareConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilitySoftwareConfiguration.PowerShell.cs
similarity index 78%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilitySoftwareConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilitySoftwareConfiguration.PowerShell.cs
index 218aca68bd1f..6a86a865bf3b 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilitySoftwareConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilitySoftwareConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,29 +63,29 @@ public partial class HighAvailabilitySoftwareConfiguration
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new HighAvailabilitySoftwareConfiguration(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new HighAvailabilitySoftwareConfiguration(content);
}
@@ -98,10 +98,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IH
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -116,17 +116,17 @@ internal HighAvailabilitySoftwareConfiguration(global::System.Collections.IDicti
// actually deserialize
if (content.Contains("FencingClientId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientId = (string) content.GetValueForProperty("FencingClientId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientId = (string) content.GetValueForProperty("FencingClientId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientId, global::System.Convert.ToString);
}
if (content.Contains("FencingClientPassword"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientPassword = (string) content.GetValueForProperty("FencingClientPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientPassword = (string) content.GetValueForProperty("FencingClientPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientPassword, 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.
@@ -141,11 +141,11 @@ internal HighAvailabilitySoftwareConfiguration(global::System.Management.Automat
// actually deserialize
if (content.Contains("FencingClientId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientId = (string) content.GetValueForProperty("FencingClientId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientId = (string) content.GetValueForProperty("FencingClientId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientId, global::System.Convert.ToString);
}
if (content.Contains("FencingClientPassword"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientPassword = (string) content.GetValueForProperty("FencingClientPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientPassword = (string) content.GetValueForProperty("FencingClientPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfigurationInternal)this).FencingClientPassword, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilitySoftwareConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilitySoftwareConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilitySoftwareConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilitySoftwareConfiguration.TypeConverter.cs
index bcbb62aefd28..489084abcba0 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilitySoftwareConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilitySoftwareConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilitySoftwareConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilitySoftwareConfiguration.cs
similarity index 96%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilitySoftwareConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilitySoftwareConfiguration.cs
index a12ae1b1ea6e..541359ca7b4a 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilitySoftwareConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilitySoftwareConfiguration.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Gets or sets the HA software configuration.
public partial class HighAvailabilitySoftwareConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfigurationInternal
{
/// Backing field for property.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilitySoftwareConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilitySoftwareConfiguration.json.cs
similarity index 95%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilitySoftwareConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilitySoftwareConfiguration.json.cs
index 8dcb7076222f..689926eb2b70 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/HighAvailabilitySoftwareConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/HighAvailabilitySoftwareConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class HighAvailabilitySoftwareConfiguration
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IHighAvailabilitySoftwareConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IHighAvailabilitySoftwareConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new HighAvailabilitySoftwareConfiguration(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ImageReference.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ImageReference.PowerShell.cs
similarity index 72%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ImageReference.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ImageReference.PowerShell.cs
index 9230dbfc48e9..a68a790f0935 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ImageReference.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ImageReference.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -68,27 +68,27 @@ public partial class ImageReference
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.Workloads.Models.Api20230401.IImageReference DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new ImageReference(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.Workloads.Models.Api20230401.IImageReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new ImageReference(content);
}
@@ -98,10 +98,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.II
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -116,25 +116,29 @@ internal ImageReference(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Publisher"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Publisher, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Publisher, global::System.Convert.ToString);
}
if (content.Contains("Offer"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Offer = (string) content.GetValueForProperty("Offer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Offer, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Offer = (string) content.GetValueForProperty("Offer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Offer, global::System.Convert.ToString);
}
if (content.Contains("Sku"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Sku, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Sku, global::System.Convert.ToString);
}
if (content.Contains("Version"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Version, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Version, global::System.Convert.ToString);
+ }
+ if (content.Contains("Id"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Id, 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.
@@ -149,19 +153,23 @@ internal ImageReference(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("Publisher"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Publisher, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Publisher = (string) content.GetValueForProperty("Publisher",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Publisher, global::System.Convert.ToString);
}
if (content.Contains("Offer"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Offer = (string) content.GetValueForProperty("Offer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Offer, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Offer = (string) content.GetValueForProperty("Offer",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Offer, global::System.Convert.ToString);
}
if (content.Contains("Sku"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Sku, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Sku, global::System.Convert.ToString);
}
if (content.Contains("Version"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal)this).Version, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Version = (string) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Version, global::System.Convert.ToString);
+ }
+ if (content.Contains("Id"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal)this).Id, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ImageReference.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ImageReference.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ImageReference.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ImageReference.TypeConverter.cs
index 420e0cc57d10..7ce9b520e179 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ImageReference.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ImageReference.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ImageReference.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ImageReference.cs
similarity index 80%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ImageReference.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ImageReference.cs
index e1597bfb3d09..30f59d6abbb7 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ImageReference.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ImageReference.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -14,10 +14,20 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401
/// when you create the scale set.
///
public partial class ImageReference :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReferenceInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReferenceInternal
{
+ /// Backing field for property.
+ private string _id;
+
+ ///
+ /// Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to
+ /// provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
+ public string Id { get => this._id; set => this._id = value; }
+
/// Backing field for property.
private string _offer;
@@ -66,6 +76,17 @@ public ImageReference()
public partial interface IImageReference :
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable
{
+ ///
+ /// Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to
+ /// provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.
+ ///
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
+ Required = false,
+ ReadOnly = false,
+ Description = @"Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.",
+ SerializedName = @"id",
+ PossibleTypes = new [] { typeof(string) })]
+ string Id { get; set; }
///
/// Specifies the offer of the platform image or marketplace image used to create the virtual machine.
///
@@ -114,6 +135,11 @@ public partial interface IImageReference :
internal partial interface IImageReferenceInternal
{
+ ///
+ /// Specifies the ARM resource ID of the Azure Compute Gallery image version used for creating ACSS VMs. You will need to
+ /// provide this input when you choose to deploy virtual machines in ACSS with OS image from the Azure Compute gallery.
+ ///
+ string Id { get; set; }
///
/// Specifies the offer of the platform image or marketplace image used to create the virtual machine.
///
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ImageReference.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ImageReference.json.cs
similarity index 92%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ImageReference.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ImageReference.json.cs
index 3db28c3e513f..aa4b8d2f5e93 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/ImageReference.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/ImageReference.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -59,13 +59,13 @@ public partial class ImageReference
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IImageReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IImageReference FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new ImageReference(json) : null;
}
@@ -86,6 +86,7 @@ internal ImageReference(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Jso
{_offer = If( json?.PropertyT("offer"), out var __jsonOffer) ? (string)__jsonOffer : (string)Offer;}
{_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? (string)__jsonSku : (string)Sku;}
{_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;}
+ {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;}
AfterFromJson(json);
}
@@ -112,6 +113,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode ToJson
AddIf( null != (((object)this._offer)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonString(this._offer.ToString()) : null, "offer" ,container.Add );
AddIf( null != (((object)this._sku)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonString(this._sku.ToString()) : null, "sku" ,container.Add );
AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add );
+ AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/InfrastructureConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/InfrastructureConfiguration.PowerShell.cs
similarity index 77%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/InfrastructureConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/InfrastructureConfiguration.PowerShell.cs
index 9cd2f5dba230..55ae0c46047c 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/InfrastructureConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/InfrastructureConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,29 +63,29 @@ public partial class InfrastructureConfiguration
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new InfrastructureConfiguration(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new InfrastructureConfiguration(content);
}
@@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.II
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -113,17 +113,17 @@ internal InfrastructureConfiguration(global::System.Collections.IDictionary cont
// actually deserialize
if (content.Contains("DeploymentType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).DeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("DeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).DeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)this).DeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("DeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)this).DeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
}
if (content.Contains("AppResourceGroup"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).AppResourceGroup = (string) content.GetValueForProperty("AppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).AppResourceGroup, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)this).AppResourceGroup = (string) content.GetValueForProperty("AppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)this).AppResourceGroup, 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.
@@ -138,11 +138,11 @@ internal InfrastructureConfiguration(global::System.Management.Automation.PSObje
// actually deserialize
if (content.Contains("DeploymentType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).DeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("DeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).DeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)this).DeploymentType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType) content.GetValueForProperty("DeploymentType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)this).DeploymentType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDeploymentType.CreateFrom);
}
if (content.Contains("AppResourceGroup"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).AppResourceGroup = (string) content.GetValueForProperty("AppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal)this).AppResourceGroup, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)this).AppResourceGroup = (string) content.GetValueForProperty("AppResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal)this).AppResourceGroup, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/InfrastructureConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/InfrastructureConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/InfrastructureConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/InfrastructureConfiguration.TypeConverter.cs
index 957cb0f5ceff..c153e9a9b3f6 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/InfrastructureConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/InfrastructureConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/InfrastructureConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/InfrastructureConfiguration.cs
similarity index 96%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/InfrastructureConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/InfrastructureConfiguration.cs
index a7659d0bd15d..29e4384b451c 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/InfrastructureConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/InfrastructureConfiguration.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Deploy SAP Infrastructure Details.
public partial class InfrastructureConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfigurationInternal
{
/// Backing field for property.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/InfrastructureConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/InfrastructureConfiguration.json.cs
similarity index 93%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/InfrastructureConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/InfrastructureConfiguration.json.cs
index 31b510e7249f..28eee190a407 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/InfrastructureConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/InfrastructureConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -54,15 +54,15 @@ public partial class InfrastructureConfiguration
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration.
- /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration interface is polymorphic,
- /// and the precise model class that will get deserialized is determined at runtime based on the payload.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration.
+ /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration 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.Workloads.Models.Api20230401.IInfrastructureConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IInfrastructureConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IInfrastructureConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json))
{
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LinuxConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LinuxConfiguration.PowerShell.cs
similarity index 61%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LinuxConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LinuxConfiguration.PowerShell.cs
index 4a0b2f381eb3..8af73d20fdc8 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LinuxConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LinuxConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -66,27 +66,29 @@ public partial class LinuxConfiguration
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.Workloads.Models.Api20230401.ILinuxConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new LinuxConfiguration(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.Workloads.Models.Api20230401.ILinuxConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new LinuxConfiguration(content);
}
@@ -96,10 +98,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IL
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -114,37 +116,37 @@ internal LinuxConfiguration(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Ssh"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).Ssh = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshConfiguration) content.GetValueForProperty("Ssh",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).Ssh, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshConfigurationTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).Ssh = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshConfiguration) content.GetValueForProperty("Ssh",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).Ssh, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshConfigurationTypeConverter.ConvertFrom);
}
if (content.Contains("SshKeyPair"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshKeyPair = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshKeyPair) content.GetValueForProperty("SshKeyPair",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshKeyPair, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshKeyPairTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshKeyPair = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshKeyPair) content.GetValueForProperty("SshKeyPair",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshKeyPair, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshKeyPairTypeConverter.ConvertFrom);
}
if (content.Contains("DisablePasswordAuthentication"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).DisablePasswordAuthentication = (bool?) content.GetValueForProperty("DisablePasswordAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).DisablePasswordAuthentication, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).DisablePasswordAuthentication = (bool?) content.GetValueForProperty("DisablePasswordAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).DisablePasswordAuthentication, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
}
if (content.Contains("OSType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfigurationInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfigurationInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfigurationInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfigurationInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
}
if (content.Contains("SshKeyPairPublicKey"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshKeyPairPublicKey = (string) content.GetValueForProperty("SshKeyPairPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshKeyPairPublicKey, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshKeyPairPublicKey = (string) content.GetValueForProperty("SshKeyPairPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshKeyPairPublicKey, global::System.Convert.ToString);
}
if (content.Contains("SshKeyPairPrivateKey"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshKeyPairPrivateKey = (string) content.GetValueForProperty("SshKeyPairPrivateKey",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshKeyPairPrivateKey, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshKeyPairPrivateKey = (string) content.GetValueForProperty("SshKeyPairPrivateKey",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshKeyPairPrivateKey, global::System.Convert.ToString);
}
if (content.Contains("SshPublicKey"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshPublicKey = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshPublicKey[]) content.GetValueForProperty("SshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshPublicKey, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshPublicKeyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshPublicKey = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshPublicKey[]) content.GetValueForProperty("SshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshPublicKey, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshPublicKeyTypeConverter.ConvertFrom));
}
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.
@@ -159,31 +161,31 @@ internal LinuxConfiguration(global::System.Management.Automation.PSObject conten
// actually deserialize
if (content.Contains("Ssh"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).Ssh = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshConfiguration) content.GetValueForProperty("Ssh",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).Ssh, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshConfigurationTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).Ssh = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshConfiguration) content.GetValueForProperty("Ssh",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).Ssh, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshConfigurationTypeConverter.ConvertFrom);
}
if (content.Contains("SshKeyPair"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshKeyPair = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshKeyPair) content.GetValueForProperty("SshKeyPair",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshKeyPair, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshKeyPairTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshKeyPair = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshKeyPair) content.GetValueForProperty("SshKeyPair",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshKeyPair, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshKeyPairTypeConverter.ConvertFrom);
}
if (content.Contains("DisablePasswordAuthentication"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).DisablePasswordAuthentication = (bool?) content.GetValueForProperty("DisablePasswordAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).DisablePasswordAuthentication, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).DisablePasswordAuthentication = (bool?) content.GetValueForProperty("DisablePasswordAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).DisablePasswordAuthentication, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
}
if (content.Contains("OSType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfigurationInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfigurationInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfigurationInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfigurationInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
}
if (content.Contains("SshKeyPairPublicKey"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshKeyPairPublicKey = (string) content.GetValueForProperty("SshKeyPairPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshKeyPairPublicKey, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshKeyPairPublicKey = (string) content.GetValueForProperty("SshKeyPairPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshKeyPairPublicKey, global::System.Convert.ToString);
}
if (content.Contains("SshKeyPairPrivateKey"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshKeyPairPrivateKey = (string) content.GetValueForProperty("SshKeyPairPrivateKey",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshKeyPairPrivateKey, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshKeyPairPrivateKey = (string) content.GetValueForProperty("SshKeyPairPrivateKey",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshKeyPairPrivateKey, global::System.Convert.ToString);
}
if (content.Contains("SshPublicKey"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshPublicKey = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshPublicKey[]) content.GetValueForProperty("SshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal)this).SshPublicKey, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshPublicKeyTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshPublicKey = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshPublicKey[]) content.GetValueForProperty("SshPublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal)this).SshPublicKey, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshPublicKeyTypeConverter.ConvertFrom));
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LinuxConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LinuxConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LinuxConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LinuxConfiguration.TypeConverter.cs
index 820babf355fd..87932e696e0d 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LinuxConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LinuxConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LinuxConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LinuxConfiguration.cs
similarity index 74%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LinuxConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LinuxConfiguration.cs
index 47370f1fdee0..537c32e2ee3e 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LinuxConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LinuxConfiguration.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -12,15 +12,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401
/// see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).
///
public partial class LinuxConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal,
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration __osConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfiguration();
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration __osConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfiguration();
/// Backing field for property.
private bool? _disablePasswordAuthentication;
@@ -30,42 +30,42 @@ public partial class LinuxConfiguration :
public bool? DisablePasswordAuthentication { get => this._disablePasswordAuthentication; set => this._disablePasswordAuthentication = value; }
/// Internal Acessors for Ssh
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal.Ssh { get => (this._ssh = this._ssh ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshConfiguration()); set { {_ssh = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal.Ssh { get => (this._ssh = this._ssh ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshConfiguration()); set { {_ssh = value;} } }
/// Internal Acessors for SshKeyPair
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshKeyPair Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfigurationInternal.SshKeyPair { get => (this._sshKeyPair = this._sshKeyPair ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshKeyPair()); set { {_sshKeyPair = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshKeyPair Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfigurationInternal.SshKeyPair { get => (this._sshKeyPair = this._sshKeyPair ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshKeyPair()); set { {_sshKeyPair = value;} } }
/// The OS Type
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType OSType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfigurationInternal)__osConfiguration).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfigurationInternal)__osConfiguration).OSType = value ; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType OSType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfigurationInternal)__osConfiguration).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfigurationInternal)__osConfiguration).OSType = value ; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshConfiguration _ssh;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshConfiguration _ssh;
///
/// Specifies the ssh key configuration for a Linux OS. (This property is deprecated, please use 'sshKeyPair' instead)
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshConfiguration Ssh { get => (this._ssh = this._ssh ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshConfiguration()); set => this._ssh = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshConfiguration Ssh { get => (this._ssh = this._ssh ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshConfiguration()); set => this._ssh = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshKeyPair _sshKeyPair;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshKeyPair _sshKeyPair;
/// The SSH Key-pair used to authenticate with the VM's.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshKeyPair SshKeyPair { get => (this._sshKeyPair = this._sshKeyPair ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshKeyPair()); set => this._sshKeyPair = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshKeyPair SshKeyPair { get => (this._sshKeyPair = this._sshKeyPair ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshKeyPair()); set => this._sshKeyPair = value; }
/// SSH private key.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string SshKeyPairPrivateKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshKeyPairInternal)SshKeyPair).PrivateKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshKeyPairInternal)SshKeyPair).PrivateKey = value ?? null; }
+ public string SshKeyPairPrivateKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshKeyPairInternal)SshKeyPair).PrivateKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshKeyPairInternal)SshKeyPair).PrivateKey = value ?? null; }
/// SSH public key
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string SshKeyPairPublicKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshKeyPairInternal)SshKeyPair).PublicKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshKeyPairInternal)SshKeyPair).PublicKey = value ?? null; }
+ public string SshKeyPairPublicKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshKeyPairInternal)SshKeyPair).PublicKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshKeyPairInternal)SshKeyPair).PublicKey = value ?? null; }
/// The list of SSH public keys used to authenticate with linux based VMs.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshPublicKey[] SshPublicKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshConfigurationInternal)Ssh).PublicKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshConfigurationInternal)Ssh).PublicKey = value ?? null /* arrayOf */; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshPublicKey[] SshPublicKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshConfigurationInternal)Ssh).PublicKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshConfigurationInternal)Ssh).PublicKey = value ?? null /* arrayOf */; }
/// Creates an new instance.
public LinuxConfiguration()
@@ -89,7 +89,7 @@ public LinuxConfiguration()
/// see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).
public partial interface ILinuxConfiguration :
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration
{
/// Specifies whether password authentication should be disabled.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
@@ -121,29 +121,29 @@ public partial interface ILinuxConfiguration :
ReadOnly = false,
Description = @"The list of SSH public keys used to authenticate with linux based VMs.",
SerializedName = @"publicKeys",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshPublicKey) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshPublicKey[] SshPublicKey { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshPublicKey) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshPublicKey[] SshPublicKey { get; set; }
}
/// Specifies the Linux operating system settings on the virtual machine.
For a list of supported Linux distributions,
/// see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).
internal partial interface ILinuxConfigurationInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfigurationInternal
{
/// Specifies whether password authentication should be disabled.
bool? DisablePasswordAuthentication { get; set; }
///
/// Specifies the ssh key configuration for a Linux OS. (This property is deprecated, please use 'sshKeyPair' instead)
///
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshConfiguration Ssh { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshConfiguration Ssh { get; set; }
/// The SSH Key-pair used to authenticate with the VM's.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshKeyPair SshKeyPair { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshKeyPair SshKeyPair { get; set; }
/// SSH private key.
string SshKeyPairPrivateKey { get; set; }
/// SSH public key
string SshKeyPairPublicKey { get; set; }
/// The list of SSH public keys used to authenticate with linux based VMs.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISshPublicKey[] SshPublicKey { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISshPublicKey[] SshPublicKey { get; set; }
}
}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LinuxConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LinuxConfiguration.json.cs
similarity index 93%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LinuxConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LinuxConfiguration.json.cs
index e4cfb85e4cd3..ed9543f97a55 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LinuxConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LinuxConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -57,13 +57,13 @@ public partial class LinuxConfiguration
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILinuxConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILinuxConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new LinuxConfiguration(json) : null;
}
@@ -80,9 +80,9 @@ internal LinuxConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime
{
return;
}
- __osConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfiguration(json);
- {_ssh = If( json?.PropertyT("ssh"), out var __jsonSsh) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshConfiguration.FromJson(__jsonSsh) : Ssh;}
- {_sshKeyPair = If( json?.PropertyT("sshKeyPair"), out var __jsonSshKeyPair) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SshKeyPair.FromJson(__jsonSshKeyPair) : SshKeyPair;}
+ __osConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfiguration(json);
+ {_ssh = If( json?.PropertyT("ssh"), out var __jsonSsh) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshConfiguration.FromJson(__jsonSsh) : Ssh;}
+ {_sshKeyPair = If( json?.PropertyT("sshKeyPair"), out var __jsonSshKeyPair) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SshKeyPair.FromJson(__jsonSshKeyPair) : SshKeyPair;}
{_disablePasswordAuthentication = If( json?.PropertyT("disablePasswordAuthentication"), out var __jsonDisablePasswordAuthentication) ? (bool?)__jsonDisablePasswordAuthentication : DisablePasswordAuthentication;}
AfterFromJson(json);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerDetails.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerDetails.PowerShell.cs
similarity index 84%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerDetails.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerDetails.PowerShell.cs
index bae58f648cb2..d7648c38fee4 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerDetails.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerDetails.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,27 +63,29 @@ public partial class LoadBalancerDetails
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.Workloads.Models.Api20230401.ILoadBalancerDetails DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new LoadBalancerDetails(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.Workloads.Models.Api20230401.ILoadBalancerDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new LoadBalancerDetails(content);
}
@@ -93,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IL
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -111,13 +113,13 @@ internal LoadBalancerDetails(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetailsInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetailsInternal)this).Id, 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.
@@ -132,7 +134,7 @@ internal LoadBalancerDetails(global::System.Management.Automation.PSObject conte
// actually deserialize
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetailsInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetailsInternal)this).Id, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerDetails.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerDetails.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerDetails.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerDetails.TypeConverter.cs
index 01ad6acd4741..2e6a0994fd85 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerDetails.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerDetails.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerDetails.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerDetails.cs
similarity index 90%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerDetails.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerDetails.cs
index 22b89b5a40a2..7dba00aebfaa 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerDetails.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerDetails.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// The Load Balancer details such as Load Balancer ID.
public partial class LoadBalancerDetails :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetailsInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetailsInternal
{
/// Backing field for property.
@@ -20,7 +20,7 @@ public partial class LoadBalancerDetails :
public string Id { get => this._id; }
/// Internal Acessors for Id
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetailsInternal.Id { get => this._id; set { {_id = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetailsInternal.Id { get => this._id; set { {_id = value;} } }
/// Creates an new instance.
public LoadBalancerDetails()
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerDetails.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerDetails.json.cs
similarity index 95%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerDetails.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerDetails.json.cs
index e75b4622c5c9..05778c15a57b 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerDetails.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerDetails.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class LoadBalancerDetails
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new LoadBalancerDetails(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerResourceNames.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerResourceNames.PowerShell.cs
similarity index 70%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerResourceNames.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerResourceNames.PowerShell.cs
index a62853c0a6e4..007a14946b95 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerResourceNames.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerResourceNames.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,29 +63,29 @@ public partial class LoadBalancerResourceNames
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new LoadBalancerResourceNames(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new LoadBalancerResourceNames(content);
}
@@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IL
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -113,25 +113,25 @@ internal LoadBalancerResourceNames(global::System.Collections.IDictionary conten
// actually deserialize
if (content.Contains("LoadBalancerName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).LoadBalancerName = (string) content.GetValueForProperty("LoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).LoadBalancerName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).LoadBalancerName = (string) content.GetValueForProperty("LoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).LoadBalancerName, global::System.Convert.ToString);
}
if (content.Contains("FrontendIPConfigurationName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).FrontendIPConfigurationName = (string[]) content.GetValueForProperty("FrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).FrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).FrontendIPConfigurationName = (string[]) content.GetValueForProperty("FrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).FrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
}
if (content.Contains("BackendPoolName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).BackendPoolName = (string[]) content.GetValueForProperty("BackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).BackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).BackendPoolName = (string[]) content.GetValueForProperty("BackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).BackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
}
if (content.Contains("HealthProbeName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).HealthProbeName = (string[]) content.GetValueForProperty("HealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).HealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).HealthProbeName = (string[]) content.GetValueForProperty("HealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).HealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, 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.
@@ -146,19 +146,19 @@ internal LoadBalancerResourceNames(global::System.Management.Automation.PSObject
// actually deserialize
if (content.Contains("LoadBalancerName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).LoadBalancerName = (string) content.GetValueForProperty("LoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).LoadBalancerName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).LoadBalancerName = (string) content.GetValueForProperty("LoadBalancerName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).LoadBalancerName, global::System.Convert.ToString);
}
if (content.Contains("FrontendIPConfigurationName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).FrontendIPConfigurationName = (string[]) content.GetValueForProperty("FrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).FrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).FrontendIPConfigurationName = (string[]) content.GetValueForProperty("FrontendIPConfigurationName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).FrontendIPConfigurationName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
}
if (content.Contains("BackendPoolName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).BackendPoolName = (string[]) content.GetValueForProperty("BackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).BackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).BackendPoolName = (string[]) content.GetValueForProperty("BackendPoolName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).BackendPoolName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
}
if (content.Contains("HealthProbeName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).HealthProbeName = (string[]) content.GetValueForProperty("HealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal)this).HealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).HealthProbeName = (string[]) content.GetValueForProperty("HealthProbeName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal)this).HealthProbeName, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString));
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerResourceNames.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerResourceNames.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerResourceNames.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerResourceNames.TypeConverter.cs
index 7cb836f7503a..7e69a635bbb0 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerResourceNames.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerResourceNames.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerResourceNames.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerResourceNames.cs
similarity index 98%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerResourceNames.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerResourceNames.cs
index b61d88836831..3cce465c6e7a 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerResourceNames.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerResourceNames.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// The resource names object for load balancer and related resources.
public partial class LoadBalancerResourceNames :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNamesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNamesInternal
{
/// Backing field for property.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerResourceNames.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerResourceNames.json.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerResourceNames.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerResourceNames.json.cs
index c74c6189bd6d..bdbf1b3af112 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/LoadBalancerResourceNames.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/LoadBalancerResourceNames.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class LoadBalancerResourceNames
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerResourceNames FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerResourceNames FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new LoadBalancerResourceNames(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MessageServerProperties.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MessageServerProperties.PowerShell.cs
similarity index 63%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MessageServerProperties.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MessageServerProperties.PowerShell.cs
index 8fcadf4aa4e7..3f377bed8e0d 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MessageServerProperties.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MessageServerProperties.PowerShell.cs
@@ -3,11 +3,11 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
- /// Defines the SAP Message Server properties.
+ /// Defines the SAP message server properties.
[System.ComponentModel.TypeConverter(typeof(MessageServerPropertiesTypeConverter))]
public partial class MessageServerProperties
{
@@ -63,27 +63,29 @@ public partial class MessageServerProperties
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.Workloads.Models.Api20230401.IMessageServerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MessageServerProperties(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.Workloads.Models.Api20230401.IMessageServerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MessageServerProperties(content);
}
@@ -93,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IM
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -111,37 +113,37 @@ internal MessageServerProperties(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("MSPort"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).MSPort = (long?) content.GetValueForProperty("MSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).MSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).MSPort = (long?) content.GetValueForProperty("MSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).MSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("InternalMSPort"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).InternalMSPort = (long?) content.GetValueForProperty("InternalMSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).InternalMSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).InternalMSPort = (long?) content.GetValueForProperty("InternalMSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).InternalMSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("HttpPort"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).HttpPort = (long?) content.GetValueForProperty("HttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).HttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).HttpPort = (long?) content.GetValueForProperty("HttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).HttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("HttpsPort"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).HttpsPort = (long?) content.GetValueForProperty("HttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).HttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).HttpsPort = (long?) content.GetValueForProperty("HttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).HttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("Hostname"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
}
if (content.Contains("IPAddress"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
}
if (content.Contains("Health"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
}
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.
@@ -156,31 +158,31 @@ internal MessageServerProperties(global::System.Management.Automation.PSObject c
// actually deserialize
if (content.Contains("MSPort"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).MSPort = (long?) content.GetValueForProperty("MSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).MSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).MSPort = (long?) content.GetValueForProperty("MSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).MSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("InternalMSPort"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).InternalMSPort = (long?) content.GetValueForProperty("InternalMSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).InternalMSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).InternalMSPort = (long?) content.GetValueForProperty("InternalMSPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).InternalMSPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("HttpPort"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).HttpPort = (long?) content.GetValueForProperty("HttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).HttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).HttpPort = (long?) content.GetValueForProperty("HttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).HttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("HttpsPort"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).HttpsPort = (long?) content.GetValueForProperty("HttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).HttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).HttpsPort = (long?) content.GetValueForProperty("HttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).HttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("Hostname"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
}
if (content.Contains("IPAddress"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
}
if (content.Contains("Health"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
}
AfterDeserializePSObject(content);
}
@@ -202,7 +204,7 @@ public override string ToString()
return ToJsonString();
}
}
- /// Defines the SAP Message Server properties.
+ /// Defines the SAP message server properties.
[System.ComponentModel.TypeConverter(typeof(MessageServerPropertiesTypeConverter))]
public partial interface IMessageServerProperties
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MessageServerProperties.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MessageServerProperties.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MessageServerProperties.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MessageServerProperties.TypeConverter.cs
index e3d04d97ac25..658ff02b0af3 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MessageServerProperties.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MessageServerProperties.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MessageServerProperties.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MessageServerProperties.cs
similarity index 72%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MessageServerProperties.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MessageServerProperties.cs
index 9f587f80be21..e7e67a9f7a78 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MessageServerProperties.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MessageServerProperties.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
- /// Defines the SAP Message Server properties.
+ /// Defines the SAP message server properties.
public partial class MessageServerProperties :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerProperties,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal
{
/// Backing field for property.
@@ -23,65 +23,65 @@ public partial class MessageServerProperties :
/// Backing field for property.
private string _hostname;
- /// Message Server SAP Hostname.
+ /// message server SAP Hostname.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
public string Hostname { get => this._hostname; }
/// Backing field for property.
private long? _httpPort;
- /// Message Server HTTP Port.
+ /// message server HTTP Port.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
public long? HttpPort { get => this._httpPort; }
/// Backing field for property.
private long? _httpsPort;
- /// Message Server HTTPS Port.
+ /// message server HTTPS Port.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
public long? HttpsPort { get => this._httpsPort; }
/// Backing field for property.
private string _iPAddress;
- /// Message server IP Address.
+ /// message server IP Address.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
public string IPAddress { get => this._iPAddress; }
/// Backing field for property.
private long? _internalMSPort;
- /// Message Server internal MS port.
+ /// message server internal MS port.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
public long? InternalMSPort { get => this._internalMSPort; }
/// Backing field for property.
private long? _mSPort;
- /// Message Server port.
+ /// message server port.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
public long? MSPort { get => this._mSPort; }
/// Internal Acessors for Health
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal.Health { get => this._health; set { {_health = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal.Health { get => this._health; set { {_health = value;} } }
/// Internal Acessors for Hostname
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal.Hostname { get => this._hostname; set { {_hostname = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal.Hostname { get => this._hostname; set { {_hostname = value;} } }
/// Internal Acessors for HttpPort
- long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal.HttpPort { get => this._httpPort; set { {_httpPort = value;} } }
+ long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal.HttpPort { get => this._httpPort; set { {_httpPort = value;} } }
/// Internal Acessors for HttpsPort
- long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal.HttpsPort { get => this._httpsPort; set { {_httpsPort = value;} } }
+ long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal.HttpsPort { get => this._httpsPort; set { {_httpsPort = value;} } }
/// Internal Acessors for IPAddress
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal.IPAddress { get => this._iPAddress; set { {_iPAddress = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal.IPAddress { get => this._iPAddress; set { {_iPAddress = value;} } }
/// Internal Acessors for InternalMSPort
- long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal.InternalMSPort { get => this._internalMSPort; set { {_internalMSPort = value;} } }
+ long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal.InternalMSPort { get => this._internalMSPort; set { {_internalMSPort = value;} } }
/// Internal Acessors for MSPort
- long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerPropertiesInternal.MSPort { get => this._mSPort; set { {_mSPort = value;} } }
+ long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerPropertiesInternal.MSPort { get => this._mSPort; set { {_mSPort = value;} } }
/// Creates an new instance.
public MessageServerProperties()
@@ -89,7 +89,7 @@ public MessageServerProperties()
}
}
- /// Defines the SAP Message Server properties.
+ /// Defines the SAP message server properties.
public partial interface IMessageServerProperties :
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable
{
@@ -101,73 +101,73 @@ public partial interface IMessageServerProperties :
SerializedName = @"health",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState) })]
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Health { get; }
- /// Message Server SAP Hostname.
+ /// message server SAP Hostname.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
ReadOnly = true,
- Description = @"Message Server SAP Hostname.",
+ Description = @"message server SAP Hostname.",
SerializedName = @"hostname",
PossibleTypes = new [] { typeof(string) })]
string Hostname { get; }
- /// Message Server HTTP Port.
+ /// message server HTTP Port.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
ReadOnly = true,
- Description = @"Message Server HTTP Port.",
+ Description = @"message server HTTP Port.",
SerializedName = @"httpPort",
PossibleTypes = new [] { typeof(long) })]
long? HttpPort { get; }
- /// Message Server HTTPS Port.
+ /// message server HTTPS Port.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
ReadOnly = true,
- Description = @"Message Server HTTPS Port.",
+ Description = @"message server HTTPS Port.",
SerializedName = @"httpsPort",
PossibleTypes = new [] { typeof(long) })]
long? HttpsPort { get; }
- /// Message server IP Address.
+ /// message server IP Address.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
ReadOnly = true,
- Description = @"Message server IP Address.",
+ Description = @"message server IP Address.",
SerializedName = @"ipAddress",
PossibleTypes = new [] { typeof(string) })]
string IPAddress { get; }
- /// Message Server internal MS port.
+ /// message server internal MS port.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
ReadOnly = true,
- Description = @"Message Server internal MS port.",
+ Description = @"message server internal MS port.",
SerializedName = @"internalMsPort",
PossibleTypes = new [] { typeof(long) })]
long? InternalMSPort { get; }
- /// Message Server port.
+ /// message server port.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
ReadOnly = true,
- Description = @"Message Server port.",
+ Description = @"message server port.",
SerializedName = @"msPort",
PossibleTypes = new [] { typeof(long) })]
long? MSPort { get; }
}
- /// Defines the SAP Message Server properties.
+ /// Defines the SAP message server properties.
internal partial interface IMessageServerPropertiesInternal
{
/// Defines the health of SAP Instances.
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Health { get; set; }
- /// Message Server SAP Hostname.
+ /// message server SAP Hostname.
string Hostname { get; set; }
- /// Message Server HTTP Port.
+ /// message server HTTP Port.
long? HttpPort { get; set; }
- /// Message Server HTTPS Port.
+ /// message server HTTPS Port.
long? HttpsPort { get; set; }
- /// Message server IP Address.
+ /// message server IP Address.
string IPAddress { get; set; }
- /// Message Server internal MS port.
+ /// message server internal MS port.
long? InternalMSPort { get; set; }
- /// Message Server port.
+ /// message server port.
long? MSPort { get; set; }
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MessageServerProperties.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MessageServerProperties.json.cs
similarity index 96%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MessageServerProperties.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MessageServerProperties.json.cs
index 814839898267..c0816eb2c49d 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MessageServerProperties.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MessageServerProperties.json.cs
@@ -3,11 +3,11 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
- /// Defines the SAP Message Server properties.
+ /// Defines the SAP message server properties.
public partial class MessageServerProperties
{
@@ -54,13 +54,13 @@ public partial class MessageServerProperties
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerProperties.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMessageServerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMessageServerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new MessageServerProperties(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MountFileShareConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MountFileShareConfiguration.PowerShell.cs
similarity index 75%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MountFileShareConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MountFileShareConfiguration.PowerShell.cs
index 5beae5a1bf9d..f7397ee950c2 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MountFileShareConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MountFileShareConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -66,29 +66,29 @@ public partial class MountFileShareConfiguration
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new MountFileShareConfiguration(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new MountFileShareConfiguration(content);
}
@@ -98,10 +98,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IM
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -116,21 +116,21 @@ internal MountFileShareConfiguration(global::System.Collections.IDictionary cont
// actually deserialize
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfigurationInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfigurationInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfigurationInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfigurationInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("PrivateEndpointId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfigurationInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfigurationInternal)this).PrivateEndpointId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfigurationInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfigurationInternal)this).PrivateEndpointId, global::System.Convert.ToString);
}
if (content.Contains("ConfigurationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType.CreateFrom);
}
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.
@@ -145,15 +145,15 @@ internal MountFileShareConfiguration(global::System.Management.Automation.PSObje
// actually deserialize
if (content.Contains("Id"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfigurationInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfigurationInternal)this).Id, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfigurationInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfigurationInternal)this).Id, global::System.Convert.ToString);
}
if (content.Contains("PrivateEndpointId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfigurationInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfigurationInternal)this).PrivateEndpointId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfigurationInternal)this).PrivateEndpointId = (string) content.GetValueForProperty("PrivateEndpointId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfigurationInternal)this).PrivateEndpointId, global::System.Convert.ToString);
}
if (content.Contains("ConfigurationType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)this).ConfigurationType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType) content.GetValueForProperty("ConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)this).ConfigurationType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType.CreateFrom);
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MountFileShareConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MountFileShareConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MountFileShareConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MountFileShareConfiguration.TypeConverter.cs
index 31dda9dbe31a..310346cbb577 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MountFileShareConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MountFileShareConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MountFileShareConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MountFileShareConfiguration.cs
similarity index 86%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MountFileShareConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MountFileShareConfiguration.cs
index 96a88e47b66c..c8f3309a53f1 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MountFileShareConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MountFileShareConfiguration.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -12,19 +12,19 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401
/// the fileshare as a part of the create infra flow.
///
public partial class MountFileShareConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfigurationInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfigurationInternal,
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IValidates
{
///
- /// Backing field for Inherited model
///
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfiguration __fileShareConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.FileShareConfiguration();
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfiguration __fileShareConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.FileShareConfiguration();
/// The type of file share config.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType ConfigurationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)__fileShareConfiguration).ConfigurationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal)__fileShareConfiguration).ConfigurationType = value ; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.ConfigurationType ConfigurationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)__fileShareConfiguration).ConfigurationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal)__fileShareConfiguration).ConfigurationType = value ; }
/// Backing field for property.
private string _id;
@@ -62,7 +62,7 @@ public MountFileShareConfiguration()
/// the fileshare as a part of the create infra flow.
public partial interface IMountFileShareConfiguration :
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IJsonSerializable,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfiguration
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfiguration
{
/// The fileshare resource ID
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
@@ -85,7 +85,7 @@ public partial interface IMountFileShareConfiguration :
/// Gets or sets the file share configuration where the transport directory fileshare already exists, and user wishes to mount
/// the fileshare as a part of the create infra flow.
internal partial interface IMountFileShareConfigurationInternal :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IFileShareConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IFileShareConfigurationInternal
{
/// The fileshare resource ID
string Id { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MountFileShareConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MountFileShareConfiguration.json.cs
similarity index 94%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MountFileShareConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MountFileShareConfiguration.json.cs
index 6ae4a993b870..8bbdbb82cad1 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/MountFileShareConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/MountFileShareConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -57,13 +57,13 @@ public partial class MountFileShareConfiguration
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IMountFileShareConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IMountFileShareConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new MountFileShareConfiguration(json) : null;
}
@@ -80,7 +80,7 @@ internal MountFileShareConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Workload
{
return;
}
- __fileShareConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.FileShareConfiguration(json);
+ __fileShareConfiguration = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.FileShareConfiguration(json);
{_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;}
{_privateEndpointId = If( json?.PropertyT("privateEndpointId"), out var __jsonPrivateEndpointId) ? (string)__jsonPrivateEndpointId : (string)PrivateEndpointId;}
AfterFromJson(json);
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkConfiguration.PowerShell.cs
similarity index 83%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkConfiguration.PowerShell.cs
index 678704ccdc0a..191472c5f33f 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -65,27 +65,29 @@ public partial class NetworkConfiguration
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.Workloads.Models.Api20230401.INetworkConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new NetworkConfiguration(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.Workloads.Models.Api20230401.INetworkConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new NetworkConfiguration(content);
}
@@ -95,10 +97,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IN
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -113,13 +115,13 @@ internal NetworkConfiguration(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("IsSecondaryIPEnabled"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfigurationInternal)this).IsSecondaryIPEnabled = (bool?) content.GetValueForProperty("IsSecondaryIPEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfigurationInternal)this).IsSecondaryIPEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkConfigurationInternal)this).IsSecondaryIPEnabled = (bool?) content.GetValueForProperty("IsSecondaryIPEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkConfigurationInternal)this).IsSecondaryIPEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
}
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.
@@ -134,7 +136,7 @@ internal NetworkConfiguration(global::System.Management.Automation.PSObject cont
// actually deserialize
if (content.Contains("IsSecondaryIPEnabled"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfigurationInternal)this).IsSecondaryIPEnabled = (bool?) content.GetValueForProperty("IsSecondaryIPEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfigurationInternal)this).IsSecondaryIPEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkConfigurationInternal)this).IsSecondaryIPEnabled = (bool?) content.GetValueForProperty("IsSecondaryIPEnabled",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkConfigurationInternal)this).IsSecondaryIPEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkConfiguration.TypeConverter.cs
index dd7f9601bbb9..26b4d2820f7b 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkConfiguration.cs
similarity index 96%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkConfiguration.cs
index 01cbdd6793e7..353c1e272dcb 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkConfiguration.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401
/// Defines the network configuration type for SAP system infrastructure that is being deployed
///
public partial class NetworkConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkConfigurationInternal
{
/// Backing field for property.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkConfiguration.json.cs
similarity index 95%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkConfiguration.json.cs
index 86140771b9cf..d27a77020ae9 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -56,13 +56,13 @@ public partial class NetworkConfiguration
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new NetworkConfiguration(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkInterfaceResourceNames.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkInterfaceResourceNames.PowerShell.cs
similarity index 83%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkInterfaceResourceNames.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkInterfaceResourceNames.PowerShell.cs
index 90335c57ce78..6c21cbecfcf7 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkInterfaceResourceNames.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkInterfaceResourceNames.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,29 +63,29 @@ public partial class NetworkInterfaceResourceNames
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkInterfaceResourceNames DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkInterfaceResourceNames DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new NetworkInterfaceResourceNames(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkInterfaceResourceNames DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkInterfaceResourceNames DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new NetworkInterfaceResourceNames(content);
}
@@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IN
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkInterfaceResourceNames FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkInterfaceResourceNames FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -113,13 +113,13 @@ internal NetworkInterfaceResourceNames(global::System.Collections.IDictionary co
// actually deserialize
if (content.Contains("NetworkInterfaceName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkInterfaceResourceNamesInternal)this).NetworkInterfaceName = (string) content.GetValueForProperty("NetworkInterfaceName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkInterfaceResourceNamesInternal)this).NetworkInterfaceName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkInterfaceResourceNamesInternal)this).NetworkInterfaceName = (string) content.GetValueForProperty("NetworkInterfaceName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkInterfaceResourceNamesInternal)this).NetworkInterfaceName, 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.
@@ -134,7 +134,7 @@ internal NetworkInterfaceResourceNames(global::System.Management.Automation.PSOb
// actually deserialize
if (content.Contains("NetworkInterfaceName"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkInterfaceResourceNamesInternal)this).NetworkInterfaceName = (string) content.GetValueForProperty("NetworkInterfaceName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkInterfaceResourceNamesInternal)this).NetworkInterfaceName, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkInterfaceResourceNamesInternal)this).NetworkInterfaceName = (string) content.GetValueForProperty("NetworkInterfaceName",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkInterfaceResourceNamesInternal)this).NetworkInterfaceName, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkInterfaceResourceNames.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkInterfaceResourceNames.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkInterfaceResourceNames.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkInterfaceResourceNames.TypeConverter.cs
index c544482621ce..2572db60af61 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkInterfaceResourceNames.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkInterfaceResourceNames.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkInterfaceResourceNames ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkInterfaceResourceNames ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkInterfaceResourceNames).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkInterfaceResourceNames).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkInterfaceResourceNames.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkInterfaceResourceNames.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkInterfaceResourceNames.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkInterfaceResourceNames.cs
index 59ae50016d3d..93e2957ef763 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkInterfaceResourceNames.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkInterfaceResourceNames.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// The resource names object for network interface and related resources.
public partial class NetworkInterfaceResourceNames :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkInterfaceResourceNames,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkInterfaceResourceNamesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkInterfaceResourceNames,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkInterfaceResourceNamesInternal
{
/// Backing field for property.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkInterfaceResourceNames.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkInterfaceResourceNames.json.cs
similarity index 95%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkInterfaceResourceNames.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkInterfaceResourceNames.json.cs
index a0ea9c432f91..1be0654dbf24 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/NetworkInterfaceResourceNames.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/NetworkInterfaceResourceNames.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class NetworkInterfaceResourceNames
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkInterfaceResourceNames.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkInterfaceResourceNames.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkInterfaceResourceNames.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkInterfaceResourceNames.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.INetworkInterfaceResourceNames FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.INetworkInterfaceResourceNames FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new NetworkInterfaceResourceNames(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSConfiguration.PowerShell.cs
similarity index 83%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSConfiguration.PowerShell.cs
index 1ac3b5564043..929cb9c7849e 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,27 +63,27 @@ public partial class OSConfiguration
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.Workloads.Models.Api20230401.IOSConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new OSConfiguration(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.Workloads.Models.Api20230401.IOSConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new OSConfiguration(content);
}
@@ -93,10 +93,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IO
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -111,13 +111,13 @@ internal OSConfiguration(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("OSType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfigurationInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfigurationInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfigurationInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfigurationInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
}
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.
@@ -132,7 +132,7 @@ internal OSConfiguration(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("OSType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfigurationInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfigurationInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfigurationInternal)this).OSType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfigurationInternal)this).OSType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSConfiguration.TypeConverter.cs
index 0ca8649bbdb3..3f8e1ff5b4d2 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSConfiguration.cs
similarity index 95%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSConfiguration.cs
index 8d512de3cd03..beaae2fad0fc 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSConfiguration.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Defines the OS configuration.
public partial class OSConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfigurationInternal
{
/// Backing field for property.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSConfiguration.json.cs
similarity index 93%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSConfiguration.json.cs
index 24c41a0ef2d4..5cbfbc716a2d 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -54,15 +54,15 @@ public partial class OSConfiguration
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration.
- /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration interface is polymorphic, and
- /// the precise model class that will get deserialized is determined at runtime based on the payload.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration.
+ /// Note: the Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration 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.Workloads.Models.Api20230401.IOSConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
if (!(node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json))
{
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSProfile.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSProfile.PowerShell.cs
similarity index 71%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSProfile.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSProfile.PowerShell.cs
index 6f5f07f07501..439fa5c00e39 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSProfile.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSProfile.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -65,27 +65,27 @@ public partial class OSProfile
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.Workloads.Models.Api20230401.IOSProfile DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new OSProfile(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.Workloads.Models.Api20230401.IOSProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new OSProfile(content);
}
@@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IO
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -113,25 +113,25 @@ internal OSProfile(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("OSConfiguration"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).OSConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("OSConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).OSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).OSConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration) content.GetValueForProperty("OSConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).OSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfigurationTypeConverter.ConvertFrom);
}
if (content.Contains("AdminUsername"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).AdminUsername = (string) content.GetValueForProperty("AdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).AdminUsername, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).AdminUsername = (string) content.GetValueForProperty("AdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).AdminUsername, global::System.Convert.ToString);
}
if (content.Contains("AdminPassword"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).AdminPassword = (string) content.GetValueForProperty("AdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).AdminPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).AdminPassword = (string) content.GetValueForProperty("AdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).AdminPassword, global::System.Convert.ToString);
}
if (content.Contains("OSConfigurationOstype"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
}
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.
@@ -146,19 +146,19 @@ internal OSProfile(global::System.Management.Automation.PSObject content)
// actually deserialize
if (content.Contains("OSConfiguration"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).OSConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration) content.GetValueForProperty("OSConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).OSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfigurationTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).OSConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration) content.GetValueForProperty("OSConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).OSConfiguration, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfigurationTypeConverter.ConvertFrom);
}
if (content.Contains("AdminUsername"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).AdminUsername = (string) content.GetValueForProperty("AdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).AdminUsername, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).AdminUsername = (string) content.GetValueForProperty("AdminUsername",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).AdminUsername, global::System.Convert.ToString);
}
if (content.Contains("AdminPassword"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).AdminPassword = (string) content.GetValueForProperty("AdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).AdminPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).AdminPassword = (string) content.GetValueForProperty("AdminPassword",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).AdminPassword, global::System.Convert.ToString);
}
if (content.Contains("OSConfigurationOstype"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).OSConfigurationOstype = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType) content.GetValueForProperty("OSConfigurationOstype",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal)this).OSConfigurationOstype, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType.CreateFrom);
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSProfile.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSProfile.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSProfile.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSProfile.TypeConverter.cs
index d6b0ada7096f..152a10e0ba46 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSProfile.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSProfile.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSProfile.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSProfile.cs
similarity index 91%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSProfile.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSProfile.cs
index c4c6168927a1..e0ec7ccc53ff 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSProfile.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSProfile.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401
/// Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned.
///
public partial class OSProfile :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal
{
/// Backing field for property.
@@ -46,18 +46,18 @@ public partial class OSProfile :
public string AdminUsername { get => this._adminUsername; set => this._adminUsername = value; }
/// Internal Acessors for OSConfiguration
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfileInternal.OSConfiguration { get => (this._oSConfiguration = this._oSConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfiguration()); set { {_oSConfiguration = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfileInternal.OSConfiguration { get => (this._oSConfiguration = this._oSConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfiguration()); set { {_oSConfiguration = value;} } }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration _oSConfiguration;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration _oSConfiguration;
/// Specifies Windows operating system settings on the virtual machine.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration OSConfiguration { get => (this._oSConfiguration = this._oSConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfiguration()); set => this._oSConfiguration = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration OSConfiguration { get => (this._oSConfiguration = this._oSConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfiguration()); set => this._oSConfiguration = value; }
/// The OS Type
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType? OSConfigurationOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfigurationInternal)OSConfiguration).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfigurationInternal)OSConfiguration).OSType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType)""); }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType? OSConfigurationOstype { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfigurationInternal)OSConfiguration).OSType; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfigurationInternal)OSConfiguration).OSType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType)""); }
/// Creates an new instance.
public OSProfile()
@@ -136,7 +136,7 @@ internal partial interface IOSProfileInternal
///
string AdminUsername { get; set; }
/// Specifies Windows operating system settings on the virtual machine.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSConfiguration OSConfiguration { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSConfiguration OSConfiguration { get; set; }
/// The OS Type
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.OSType? OSConfigurationOstype { get; set; }
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSProfile.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSProfile.json.cs
similarity index 95%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSProfile.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSProfile.json.cs
index 26672cfec642..698c5338f93b 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSProfile.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSProfile.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -56,13 +56,13 @@ public partial class OSProfile
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSProfile FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new OSProfile(json) : null;
}
@@ -79,7 +79,7 @@ internal OSProfile(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.Jso
{
return;
}
- {_oSConfiguration = If( json?.PropertyT("osConfiguration"), out var __jsonOSConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.OSConfiguration.FromJson(__jsonOSConfiguration) : OSConfiguration;}
+ {_oSConfiguration = If( json?.PropertyT("osConfiguration"), out var __jsonOSConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.OSConfiguration.FromJson(__jsonOSConfiguration) : OSConfiguration;}
{_adminUsername = If( json?.PropertyT("adminUsername"), out var __jsonAdminUsername) ? (string)__jsonAdminUsername : (string)AdminUsername;}
{_adminPassword = If( json?.PropertyT("adminPassword"), out var __jsonAdminPassword) ? (string)__jsonAdminPassword : (string)AdminPassword;}
AfterFromJson(json);
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSSapConfiguration.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSSapConfiguration.PowerShell.cs
similarity index 70%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSSapConfiguration.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSSapConfiguration.PowerShell.cs
index 596fb20ff823..8f8d84395271 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSSapConfiguration.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSSapConfiguration.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,27 +63,29 @@ public partial class OSSapConfiguration
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.Workloads.Models.Api20230401.IOSSapConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new OSSapConfiguration(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.Workloads.Models.Api20230401.IOSSapConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new OSSapConfiguration(content);
}
@@ -93,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IO
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -111,25 +113,25 @@ internal OSSapConfiguration(global::System.Collections.IDictionary content)
// actually deserialize
if (content.Contains("DeployerVMPackage"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).DeployerVMPackage = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages) content.GetValueForProperty("DeployerVMPackage",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).DeployerVMPackage, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DeployerVMPackagesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).DeployerVMPackage = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages) content.GetValueForProperty("DeployerVMPackage",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).DeployerVMPackage, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DeployerVMPackagesTypeConverter.ConvertFrom);
}
if (content.Contains("SapFqdn"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).SapFqdn = (string) content.GetValueForProperty("SapFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).SapFqdn, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).SapFqdn = (string) content.GetValueForProperty("SapFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).SapFqdn, global::System.Convert.ToString);
}
if (content.Contains("DeployerVMPackageUrl"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).DeployerVMPackageUrl = (string) content.GetValueForProperty("DeployerVMPackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).DeployerVMPackageUrl, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).DeployerVMPackageUrl = (string) content.GetValueForProperty("DeployerVMPackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).DeployerVMPackageUrl, global::System.Convert.ToString);
}
if (content.Contains("DeployerVMPackageStorageAccountId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).DeployerVMPackageStorageAccountId = (string) content.GetValueForProperty("DeployerVMPackageStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).DeployerVMPackageStorageAccountId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).DeployerVMPackageStorageAccountId = (string) content.GetValueForProperty("DeployerVMPackageStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).DeployerVMPackageStorageAccountId, 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.
@@ -144,19 +146,19 @@ internal OSSapConfiguration(global::System.Management.Automation.PSObject conten
// actually deserialize
if (content.Contains("DeployerVMPackage"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).DeployerVMPackage = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages) content.GetValueForProperty("DeployerVMPackage",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).DeployerVMPackage, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DeployerVMPackagesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).DeployerVMPackage = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages) content.GetValueForProperty("DeployerVMPackage",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).DeployerVMPackage, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DeployerVMPackagesTypeConverter.ConvertFrom);
}
if (content.Contains("SapFqdn"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).SapFqdn = (string) content.GetValueForProperty("SapFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).SapFqdn, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).SapFqdn = (string) content.GetValueForProperty("SapFqdn",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).SapFqdn, global::System.Convert.ToString);
}
if (content.Contains("DeployerVMPackageUrl"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).DeployerVMPackageUrl = (string) content.GetValueForProperty("DeployerVMPackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).DeployerVMPackageUrl, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).DeployerVMPackageUrl = (string) content.GetValueForProperty("DeployerVMPackageUrl",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).DeployerVMPackageUrl, global::System.Convert.ToString);
}
if (content.Contains("DeployerVMPackageStorageAccountId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).DeployerVMPackageStorageAccountId = (string) content.GetValueForProperty("DeployerVMPackageStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal)this).DeployerVMPackageStorageAccountId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).DeployerVMPackageStorageAccountId = (string) content.GetValueForProperty("DeployerVMPackageStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal)this).DeployerVMPackageStorageAccountId, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSSapConfiguration.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSSapConfiguration.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSSapConfiguration.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSSapConfiguration.TypeConverter.cs
index 891fad357762..514013dfd88b 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSSapConfiguration.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSSapConfiguration.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfiguration ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfiguration).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSSapConfiguration.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSSapConfiguration.cs
similarity index 75%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSSapConfiguration.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSSapConfiguration.cs
index 9d531587007c..794dc9cf03fa 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSSapConfiguration.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSSapConfiguration.cs
@@ -3,33 +3,33 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Defines the OS and SAP Configurations for Deployment
public partial class OSSapConfiguration :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfiguration,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages _deployerVMPackage;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages _deployerVMPackage;
/// The url and storage account ID where deployer VM packages are uploaded
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages DeployerVMPackage { get => (this._deployerVMPackage = this._deployerVMPackage ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DeployerVMPackages()); set => this._deployerVMPackage = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages DeployerVMPackage { get => (this._deployerVMPackage = this._deployerVMPackage ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DeployerVMPackages()); set => this._deployerVMPackage = value; }
/// The deployer VM packages storage account id
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string DeployerVMPackageStorageAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackagesInternal)DeployerVMPackage).StorageAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackagesInternal)DeployerVMPackage).StorageAccountId = value ?? null; }
+ public string DeployerVMPackageStorageAccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackagesInternal)DeployerVMPackage).StorageAccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackagesInternal)DeployerVMPackage).StorageAccountId = value ?? null; }
/// The URL to the deployer VM packages file.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string DeployerVMPackageUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackagesInternal)DeployerVMPackage).Url; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackagesInternal)DeployerVMPackage).Url = value ?? null; }
+ public string DeployerVMPackageUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackagesInternal)DeployerVMPackage).Url; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackagesInternal)DeployerVMPackage).Url = value ?? null; }
/// Internal Acessors for DeployerVMPackage
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfigurationInternal.DeployerVMPackage { get => (this._deployerVMPackage = this._deployerVMPackage ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DeployerVMPackages()); set { {_deployerVMPackage = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfigurationInternal.DeployerVMPackage { get => (this._deployerVMPackage = this._deployerVMPackage ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DeployerVMPackages()); set { {_deployerVMPackage = value;} } }
/// Backing field for property.
private string _sapFqdn;
@@ -79,7 +79,7 @@ internal partial interface IOSSapConfigurationInternal
{
/// The url and storage account ID where deployer VM packages are uploaded
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IDeployerVMPackages DeployerVMPackage { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IDeployerVMPackages DeployerVMPackage { get; set; }
/// The deployer VM packages storage account id
string DeployerVMPackageStorageAccountId { get; set; }
/// The URL to the deployer VM packages file.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSSapConfiguration.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSSapConfiguration.json.cs
similarity index 94%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSSapConfiguration.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSSapConfiguration.json.cs
index 247bd3c929ab..d2a1abb67909 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/OSSapConfiguration.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/OSSapConfiguration.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class OSSapConfiguration
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfiguration.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfiguration.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IOSSapConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IOSSapConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new OSSapConfiguration(json) : null;
}
@@ -77,7 +77,7 @@ internal OSSapConfiguration(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime
{
return;
}
- {_deployerVMPackage = If( json?.PropertyT("deployerVmPackages"), out var __jsonDeployerVMPackages) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.DeployerVMPackages.FromJson(__jsonDeployerVMPackages) : DeployerVMPackage;}
+ {_deployerVMPackage = If( json?.PropertyT("deployerVmPackages"), out var __jsonDeployerVMPackages) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.DeployerVMPackages.FromJson(__jsonDeployerVMPackages) : DeployerVMPackage;}
{_sapFqdn = If( json?.PropertyT("sapFqdn"), out var __jsonSapFqdn) ? (string)__jsonSapFqdn : (string)SapFqdn;}
AfterFromJson(json);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstance.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstance.PowerShell.cs
similarity index 57%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstance.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstance.PowerShell.cs
index 8a7d5ee5aaaa..2bc3e31139c2 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstance.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstance.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,29 +63,29 @@ public partial class SapApplicationServerInstance
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new SapApplicationServerInstance(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new SapApplicationServerInstance(content);
}
@@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IS
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -113,7 +113,7 @@ internal SapApplicationServerInstance(global::System.Collections.IDictionary con
// actually deserialize
if (content.Contains("Property"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapApplicationServerPropertiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapApplicationServerPropertiesTypeConverter.ConvertFrom);
}
if (content.Contains("SystemDataCreatedBy"))
{
@@ -165,89 +165,93 @@ internal SapApplicationServerInstance(global::System.Collections.IDictionary con
}
if (content.Contains("LoadBalancerDetail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).LoadBalancerDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails) content.GetValueForProperty("LoadBalancerDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).LoadBalancerDetail, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerDetailsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).LoadBalancerDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails) content.GetValueForProperty("LoadBalancerDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).LoadBalancerDetail, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerDetailsTypeConverter.ConvertFrom);
}
if (content.Contains("Error"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapVirtualInstanceErrorTypeConverter.ConvertFrom);
}
if (content.Contains("InstanceNo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).InstanceNo, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).InstanceNo, global::System.Convert.ToString);
}
if (content.Contains("Subnet"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Subnet, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Subnet, global::System.Convert.ToString);
}
if (content.Contains("Hostname"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Hostname, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Hostname, global::System.Convert.ToString);
}
if (content.Contains("KernelVersion"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).KernelVersion, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).KernelVersion, global::System.Convert.ToString);
}
if (content.Contains("KernelPatch"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).KernelPatch, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).KernelPatch, global::System.Convert.ToString);
}
if (content.Contains("IPAddress"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).IPAddress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).IPAddress, global::System.Convert.ToString);
}
if (content.Contains("GatewayPort"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).GatewayPort = (long?) content.GetValueForProperty("GatewayPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).GatewayPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).GatewayPort = (long?) content.GetValueForProperty("GatewayPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).GatewayPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("IcmHttpPort"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).IcmHttpPort = (long?) content.GetValueForProperty("IcmHttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).IcmHttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).IcmHttpPort = (long?) content.GetValueForProperty("IcmHttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).IcmHttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("IcmHttpsPort"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).IcmHttpsPort = (long?) content.GetValueForProperty("IcmHttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).IcmHttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).IcmHttpsPort = (long?) content.GetValueForProperty("IcmHttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).IcmHttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ if (content.Contains("DispatcherStatus"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).DispatcherStatus = (string) content.GetValueForProperty("DispatcherStatus",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).DispatcherStatus, global::System.Convert.ToString);
}
if (content.Contains("VMDetail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerVMDetailsTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ApplicationServerVMDetailsTypeConverter.ConvertFrom));
}
if (content.Contains("Status"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
}
if (content.Contains("Health"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState.CreateFrom);
}
if (content.Contains("LoadBalancerDetailId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).LoadBalancerDetailId = (string) content.GetValueForProperty("LoadBalancerDetailId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).LoadBalancerDetailId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).LoadBalancerDetailId = (string) content.GetValueForProperty("LoadBalancerDetailId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).LoadBalancerDetailId, global::System.Convert.ToString);
}
if (content.Contains("ErrorProperty"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ErrorDefinitionTypeConverter.ConvertFrom);
}
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ErrorDefinitionTypeConverter.ConvertFrom));
}
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.
@@ -262,7 +266,7 @@ internal SapApplicationServerInstance(global::System.Management.Automation.PSObj
// actually deserialize
if (content.Contains("Property"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapApplicationServerPropertiesTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapApplicationServerPropertiesTypeConverter.ConvertFrom);
}
if (content.Contains("SystemDataCreatedBy"))
{
@@ -314,83 +318,87 @@ internal SapApplicationServerInstance(global::System.Management.Automation.PSObj
}
if (content.Contains("LoadBalancerDetail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).LoadBalancerDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails) content.GetValueForProperty("LoadBalancerDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).LoadBalancerDetail, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerDetailsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).LoadBalancerDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails) content.GetValueForProperty("LoadBalancerDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).LoadBalancerDetail, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerDetailsTypeConverter.ConvertFrom);
}
if (content.Contains("Error"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceErrorTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapVirtualInstanceErrorTypeConverter.ConvertFrom);
}
if (content.Contains("InstanceNo"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).InstanceNo, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).InstanceNo, global::System.Convert.ToString);
}
if (content.Contains("Subnet"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Subnet, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Subnet, global::System.Convert.ToString);
}
if (content.Contains("Hostname"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Hostname, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Hostname, global::System.Convert.ToString);
}
if (content.Contains("KernelVersion"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).KernelVersion, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).KernelVersion, global::System.Convert.ToString);
}
if (content.Contains("KernelPatch"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).KernelPatch, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).KernelPatch, global::System.Convert.ToString);
}
if (content.Contains("IPAddress"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).IPAddress, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).IPAddress, global::System.Convert.ToString);
}
if (content.Contains("GatewayPort"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).GatewayPort = (long?) content.GetValueForProperty("GatewayPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).GatewayPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).GatewayPort = (long?) content.GetValueForProperty("GatewayPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).GatewayPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("IcmHttpPort"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).IcmHttpPort = (long?) content.GetValueForProperty("IcmHttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).IcmHttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).IcmHttpPort = (long?) content.GetValueForProperty("IcmHttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).IcmHttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
}
if (content.Contains("IcmHttpsPort"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).IcmHttpsPort = (long?) content.GetValueForProperty("IcmHttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).IcmHttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).IcmHttpsPort = (long?) content.GetValueForProperty("IcmHttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).IcmHttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ if (content.Contains("DispatcherStatus"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).DispatcherStatus = (string) content.GetValueForProperty("DispatcherStatus",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).DispatcherStatus, global::System.Convert.ToString);
}
if (content.Contains("VMDetail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerVMDetailsTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ApplicationServerVMDetailsTypeConverter.ConvertFrom));
}
if (content.Contains("Status"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
}
if (content.Contains("Health"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
}
if (content.Contains("ProvisioningState"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState.CreateFrom);
}
if (content.Contains("LoadBalancerDetailId"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).LoadBalancerDetailId = (string) content.GetValueForProperty("LoadBalancerDetailId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).LoadBalancerDetailId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).LoadBalancerDetailId = (string) content.GetValueForProperty("LoadBalancerDetailId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).LoadBalancerDetailId, global::System.Convert.ToString);
}
if (content.Contains("ErrorProperty"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ErrorDefinitionTypeConverter.ConvertFrom);
}
if (content.Contains("Code"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Code, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Code, global::System.Convert.ToString);
}
if (content.Contains("Message"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Message, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Message, global::System.Convert.ToString);
}
if (content.Contains("Detail"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ErrorDefinitionTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ErrorDefinitionTypeConverter.ConvertFrom));
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstance.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstance.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstance.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstance.TypeConverter.cs
index df43846165b1..bb0da2489ccb 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstance.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstance.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstance.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstance.cs
similarity index 71%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstance.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstance.cs
index 8507ac2efe11..6aaf8793a61d 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstance.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstance.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Define the SAP Application Server Instance resource.
public partial class SapApplicationServerInstance :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal,
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.IValidates
{
///
@@ -24,42 +24,47 @@ public partial class SapApplicationServerInstance :
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Code; }
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Code; }
/// Internal error details.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Detail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Detail; }
+
+ /// Application server instance dispatcher status.
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
+ public string DispatcherStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).DispatcherStatus; }
/// Application server instance gateway Port.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public long? GatewayPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).GatewayPort; }
+ public long? GatewayPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).GatewayPort; }
/// Defines the health of SAP Instances.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.FormatTable(Index = 2)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Health { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Health; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Health { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Health; }
/// Application server instance SAP hostname.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.FormatTable(Index = 5)]
- public string Hostname { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Hostname; }
+ public string Hostname { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Hostname; }
/// Application server instance SAP IP Address.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public string IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).IPAddress; }
+ public string IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).IPAddress; }
/// Application server instance ICM HTTP Port.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public long? IcmHttpPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).IcmHttpPort; }
+ public long? IcmHttpPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).IcmHttpPort; }
/// Application server instance ICM HTTPS Port.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public long? IcmHttpsPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).IcmHttpsPort; }
+ public long? IcmHttpsPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).IcmHttpsPort; }
///
/// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
@@ -71,21 +76,21 @@ public partial class SapApplicationServerInstance :
/// Application server Instance Number.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public string InstanceNo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).InstanceNo; }
+ public string InstanceNo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).InstanceNo; }
/// Application server instance SAP Kernel Patch level.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public string KernelPatch { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).KernelPatch; }
+ public string KernelPatch { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).KernelPatch; }
/// Application server instance SAP Kernel Version.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public string KernelVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).KernelVersion; }
+ public string KernelVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).KernelVersion; }
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public string LoadBalancerDetailId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).LoadBalancerDetailId; }
+ public string LoadBalancerDetailId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).LoadBalancerDetailId; }
/// The geo-location where the resource lives
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inherited)]
@@ -95,70 +100,73 @@ public partial class SapApplicationServerInstance :
/// Description of the error.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Message; }
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Message; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Code = value; }
/// Internal Acessors for Detail
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Detail = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Detail = value; }
+
+ /// Internal Acessors for DispatcherStatus
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.DispatcherStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).DispatcherStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).DispatcherStatus = value; }
/// Internal Acessors for Error
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Error = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceError Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Error = value; }
/// Internal Acessors for ErrorProperty
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.ErrorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).ErrorProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).ErrorProperty = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.ErrorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).ErrorProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).ErrorProperty = value; }
/// Internal Acessors for GatewayPort
- long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.GatewayPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).GatewayPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).GatewayPort = value; }
+ long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.GatewayPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).GatewayPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).GatewayPort = value; }
/// Internal Acessors for Health
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.Health { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Health = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.Health { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Health; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Health = value; }
/// Internal Acessors for Hostname
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.Hostname { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Hostname; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Hostname = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.Hostname { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Hostname; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Hostname = value; }
/// Internal Acessors for IPAddress
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).IPAddress = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.IPAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).IPAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).IPAddress = value; }
/// Internal Acessors for IcmHttpPort
- long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.IcmHttpPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).IcmHttpPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).IcmHttpPort = value; }
+ long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.IcmHttpPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).IcmHttpPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).IcmHttpPort = value; }
/// Internal Acessors for IcmHttpsPort
- long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.IcmHttpsPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).IcmHttpsPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).IcmHttpsPort = value; }
+ long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.IcmHttpsPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).IcmHttpsPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).IcmHttpsPort = value; }
/// Internal Acessors for InstanceNo
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.InstanceNo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).InstanceNo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).InstanceNo = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.InstanceNo { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).InstanceNo; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).InstanceNo = value; }
/// Internal Acessors for KernelPatch
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.KernelPatch { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).KernelPatch; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).KernelPatch = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.KernelPatch { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).KernelPatch; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).KernelPatch = value; }
/// Internal Acessors for KernelVersion
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.KernelVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).KernelVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).KernelVersion = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.KernelVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).KernelVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).KernelVersion = value; }
/// Internal Acessors for LoadBalancerDetail
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.LoadBalancerDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).LoadBalancerDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).LoadBalancerDetail = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.LoadBalancerDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).LoadBalancerDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).LoadBalancerDetail = value; }
/// Internal Acessors for LoadBalancerDetailId
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.LoadBalancerDetailId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).LoadBalancerDetailId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).LoadBalancerDetailId = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.LoadBalancerDetailId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).LoadBalancerDetailId; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).LoadBalancerDetailId = value; }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Message = value; }
/// Internal Acessors for Property
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerProperties Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapApplicationServerProperties()); set { {_property = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapApplicationServerProperties()); set { {_property = value;} } }
/// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).ProvisioningState = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).ProvisioningState = value; }
/// Internal Acessors for Status
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Status = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Status = value; }
/// Internal Acessors for Subnet
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Subnet = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Subnet = value; }
/// Internal Acessors for VMDetail
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceInternal.VMDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).VMDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).VMDetail = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceInternal.VMDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).VMDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).VMDetail = value; }
/// Internal Acessors for Id
string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)__trackedResource).Id = value; }
@@ -178,17 +186,17 @@ public partial class SapApplicationServerInstance :
public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.IResourceInternal)__trackedResource).Name; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerProperties _property;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties _property;
/// Defines the SAP Application Server instance properties.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapApplicationServerProperties()); set => this._property = value; }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapApplicationServerProperties()); set => this._property = value; }
/// Defines the provisioning states.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.FormatTable(Index = 3)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).ProvisioningState; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).ProvisioningState; }
/// Gets the resource group name
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
@@ -198,12 +206,12 @@ public partial class SapApplicationServerInstance :
/// Defines the SAP Instance status.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.FormatTable(Index = 4)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Status; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Status; }
/// Application server Subnet.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public string Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).Subnet; }
+ public string Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).Subnet; }
///
/// Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -257,7 +265,7 @@ public partial class SapApplicationServerInstance :
/// The list of virtual machines.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.DoNotFormat]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails[] VMDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal)Property).VMDetail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails[] VMDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)Property).VMDetail; }
/// Creates an new instance.
public SapApplicationServerInstance()
@@ -298,8 +306,16 @@ public partial interface ISapApplicationServerInstance :
ReadOnly = true,
Description = @"Internal error details.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[] Detail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[] Detail { get; }
+ /// Application server instance dispatcher status.
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"Application server instance dispatcher status.",
+ SerializedName = @"dispatcherStatus",
+ PossibleTypes = new [] { typeof(string) })]
+ string DispatcherStatus { get; }
/// Application server instance gateway Port.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
@@ -418,8 +434,8 @@ public partial interface ISapApplicationServerInstance :
ReadOnly = true,
Description = @"The list of virtual machines.",
SerializedName = @"vmDetails",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails[] VMDetail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails[] VMDetail { get; }
}
/// Define the SAP Application Server Instance resource.
@@ -431,11 +447,13 @@ internal partial interface ISapApplicationServerInstanceInternal :
///
string Code { get; set; }
/// Internal error details.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[] Detail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[] Detail { get; set; }
+ /// Application server instance dispatcher status.
+ string DispatcherStatus { get; set; }
/// Defines the Application Instance errors.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError Error { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceError Error { get; set; }
/// The Virtual Instance for SAP error body.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition ErrorProperty { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition ErrorProperty { get; set; }
/// Application server instance gateway Port.
long? GatewayPort { get; set; }
/// Defines the health of SAP Instances.
@@ -457,13 +475,13 @@ internal partial interface ISapApplicationServerInstanceInternal :
///
/// The Load Balancer details such as LoadBalancer ID attached to Application Server Virtual Machines
///
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails LoadBalancerDetail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails LoadBalancerDetail { get; set; }
string LoadBalancerDetailId { get; set; }
/// Description of the error.
string Message { get; set; }
/// Defines the SAP Application Server instance properties.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerProperties Property { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties Property { get; set; }
/// Defines the provisioning states.
Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState? ProvisioningState { get; set; }
/// Defines the SAP Instance status.
@@ -471,7 +489,7 @@ internal partial interface ISapApplicationServerInstanceInternal :
/// Application server Subnet.
string Subnet { get; set; }
/// The list of virtual machines.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails[] VMDetail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails[] VMDetail { get; set; }
}
}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstance.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstance.json.cs
similarity index 94%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstance.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstance.json.cs
index eeabce8875c7..e7b37f4db0ed 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstance.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstance.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class SapApplicationServerInstance
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new SapApplicationServerInstance(json) : null;
}
@@ -78,7 +78,7 @@ internal SapApplicationServerInstance(Microsoft.Azure.PowerShell.Cmdlets.Workloa
return;
}
__trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api30.TrackedResource(json);
- {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapApplicationServerProperties.FromJson(__jsonProperties) : Property;}
+ {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapApplicationServerProperties.FromJson(__jsonProperties) : Property;}
AfterFromJson(json);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstanceList.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstanceList.PowerShell.cs
similarity index 75%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstanceList.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstanceList.PowerShell.cs
index b1684e6a2b34..4b3f1fb2b952 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstanceList.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstanceList.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,29 +63,29 @@ public partial class SapApplicationServerInstanceList
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceList DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceList DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new SapApplicationServerInstanceList(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new SapApplicationServerInstanceList(content);
}
@@ -95,10 +95,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IS
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -113,17 +113,17 @@ internal SapApplicationServerInstanceList(global::System.Collections.IDictionary
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapApplicationServerInstanceTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapApplicationServerInstanceTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceListInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceListInternal)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.
@@ -138,11 +138,11 @@ internal SapApplicationServerInstanceList(global::System.Management.Automation.P
// actually deserialize
if (content.Contains("Value"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapApplicationServerInstanceTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapApplicationServerInstanceTypeConverter.ConvertFrom));
}
if (content.Contains("NextLink"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceListInternal)this).NextLink, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceListInternal)this).NextLink, global::System.Convert.ToString);
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstanceList.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstanceList.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstanceList.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstanceList.TypeConverter.cs
index efe8dd2dbe15..951d94ea0f98 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstanceList.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstanceList.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceList ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceList ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceList).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceList).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstanceList.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstanceList.cs
similarity index 86%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstanceList.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstanceList.cs
index a30c0e1fb665..41cdf4900268 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstanceList.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstanceList.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Defines the collection of SAP Application Server Instance resources.
public partial class SapApplicationServerInstanceList :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceList,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceListInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceList,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceListInternal
{
/// Backing field for property.
@@ -21,11 +21,11 @@ public partial class SapApplicationServerInstanceList :
public string NextLink { get => this._nextLink; set => this._nextLink = value; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance[] _value;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance[] _value;
/// Gets the list of SAP Application Server instance resources.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance[] Value { get => this._value; set => this._value = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance[] Value { get => this._value; set => this._value = value; }
/// Creates an new instance.
public SapApplicationServerInstanceList()
@@ -51,8 +51,8 @@ public partial interface ISapApplicationServerInstanceList :
ReadOnly = false,
Description = @"Gets the list of SAP Application Server instance resources.",
SerializedName = @"value",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance[] Value { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance[] Value { get; set; }
}
/// Defines the collection of SAP Application Server Instance resources.
@@ -62,7 +62,7 @@ internal partial interface ISapApplicationServerInstanceListInternal
/// Gets the value of next link.
string NextLink { get; set; }
/// Gets the list of SAP Application Server instance resources.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance[] Value { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance[] Value { get; set; }
}
}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstanceList.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstanceList.json.cs
similarity index 91%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstanceList.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstanceList.json.cs
index 3169017fd089..ea68a83f6fad 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerInstanceList.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerInstanceList.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class SapApplicationServerInstanceList
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceList.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceList.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceList.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceList.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstanceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstanceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new SapApplicationServerInstanceList(json) : null;
}
@@ -77,7 +77,7 @@ internal SapApplicationServerInstanceList(Microsoft.Azure.PowerShell.Cmdlets.Wor
{
return;
}
- {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerInstance) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapApplicationServerInstance.FromJson(__u) )) ))() : null : Value;}
+ {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerInstance) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapApplicationServerInstance.FromJson(__u) )) ))() : null : Value;}
{_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;}
AfterFromJson(json);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerProperties.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerProperties.PowerShell.cs
new file mode 100644
index 000000000000..fcb2556d3f6d
--- /dev/null
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerProperties.PowerShell.cs
@@ -0,0 +1,326 @@
+// 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.Workloads.Models.Api20231001Preview
+{
+ using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
+
+ /// Defines the SAP Application Server instance properties.
+ [System.ComponentModel.TypeConverter(typeof(SapApplicationServerPropertiesTypeConverter))]
+ public partial class SapApplicationServerProperties
+ {
+
+ ///
+ /// 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.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ {
+ return new SapApplicationServerProperties(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.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ {
+ return new SapApplicationServerProperties(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.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Collections.IDictionary content that should be used.
+ internal SapApplicationServerProperties(global::System.Collections.IDictionary content)
+ {
+ bool returnNow = false;
+ BeforeDeserializeDictionary(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("LoadBalancerDetail"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails) content.GetValueForProperty("LoadBalancerDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetail, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerDetailsTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Error"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapVirtualInstanceErrorTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("InstanceNo"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).InstanceNo, global::System.Convert.ToString);
+ }
+ if (content.Contains("Subnet"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Subnet, global::System.Convert.ToString);
+ }
+ if (content.Contains("Hostname"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
+ }
+ if (content.Contains("KernelVersion"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).KernelVersion, global::System.Convert.ToString);
+ }
+ if (content.Contains("KernelPatch"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).KernelPatch, global::System.Convert.ToString);
+ }
+ if (content.Contains("IPAddress"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
+ }
+ if (content.Contains("GatewayPort"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).GatewayPort = (long?) content.GetValueForProperty("GatewayPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).GatewayPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ if (content.Contains("IcmHttpPort"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).IcmHttpPort = (long?) content.GetValueForProperty("IcmHttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).IcmHttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ if (content.Contains("IcmHttpsPort"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).IcmHttpsPort = (long?) content.GetValueForProperty("IcmHttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).IcmHttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ if (content.Contains("DispatcherStatus"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).DispatcherStatus = (string) content.GetValueForProperty("DispatcherStatus",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).DispatcherStatus, global::System.Convert.ToString);
+ }
+ if (content.Contains("VMDetail"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ApplicationServerVMDetailsTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("Status"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
+ }
+ if (content.Contains("Health"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState.CreateFrom);
+ }
+ if (content.Contains("LoadBalancerDetailId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetailId = (string) content.GetValueForProperty("LoadBalancerDetailId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetailId, global::System.Convert.ToString);
+ }
+ if (content.Contains("ErrorProperty"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ErrorDefinitionTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Code"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Code, global::System.Convert.ToString);
+ }
+ if (content.Contains("Message"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Message, global::System.Convert.ToString);
+ }
+ if (content.Contains("Detail"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ErrorDefinitionTypeConverter.ConvertFrom));
+ }
+ AfterDeserializeDictionary(content);
+ }
+
+ ///
+ /// Deserializes a into a new instance of .
+ ///
+ /// The global::System.Management.Automation.PSObject content that should be used.
+ internal SapApplicationServerProperties(global::System.Management.Automation.PSObject content)
+ {
+ bool returnNow = false;
+ BeforeDeserializePSObject(content, ref returnNow);
+ if (returnNow)
+ {
+ return;
+ }
+ // actually deserialize
+ if (content.Contains("LoadBalancerDetail"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails) content.GetValueForProperty("LoadBalancerDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetail, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerDetailsTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Error"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapVirtualInstanceErrorTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("InstanceNo"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).InstanceNo = (string) content.GetValueForProperty("InstanceNo",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).InstanceNo, global::System.Convert.ToString);
+ }
+ if (content.Contains("Subnet"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Subnet = (string) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Subnet, global::System.Convert.ToString);
+ }
+ if (content.Contains("Hostname"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Hostname = (string) content.GetValueForProperty("Hostname",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Hostname, global::System.Convert.ToString);
+ }
+ if (content.Contains("KernelVersion"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).KernelVersion = (string) content.GetValueForProperty("KernelVersion",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).KernelVersion, global::System.Convert.ToString);
+ }
+ if (content.Contains("KernelPatch"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).KernelPatch = (string) content.GetValueForProperty("KernelPatch",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).KernelPatch, global::System.Convert.ToString);
+ }
+ if (content.Contains("IPAddress"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).IPAddress, global::System.Convert.ToString);
+ }
+ if (content.Contains("GatewayPort"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).GatewayPort = (long?) content.GetValueForProperty("GatewayPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).GatewayPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ if (content.Contains("IcmHttpPort"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).IcmHttpPort = (long?) content.GetValueForProperty("IcmHttpPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).IcmHttpPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ if (content.Contains("IcmHttpsPort"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).IcmHttpsPort = (long?) content.GetValueForProperty("IcmHttpsPort",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).IcmHttpsPort, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
+ }
+ if (content.Contains("DispatcherStatus"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).DispatcherStatus = (string) content.GetValueForProperty("DispatcherStatus",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).DispatcherStatus, global::System.Convert.ToString);
+ }
+ if (content.Contains("VMDetail"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).VMDetail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails[]) content.GetValueForProperty("VMDetail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).VMDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ApplicationServerVMDetailsTypeConverter.ConvertFrom));
+ }
+ if (content.Contains("Status"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus.CreateFrom);
+ }
+ if (content.Contains("Health"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Health = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState?) content.GetValueForProperty("Health",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Health, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState.CreateFrom);
+ }
+ if (content.Contains("ProvisioningState"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState.CreateFrom);
+ }
+ if (content.Contains("LoadBalancerDetailId"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetailId = (string) content.GetValueForProperty("LoadBalancerDetailId",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).LoadBalancerDetailId, global::System.Convert.ToString);
+ }
+ if (content.Contains("ErrorProperty"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).ErrorProperty = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition) content.GetValueForProperty("ErrorProperty",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).ErrorProperty, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ErrorDefinitionTypeConverter.ConvertFrom);
+ }
+ if (content.Contains("Code"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Code, global::System.Convert.ToString);
+ }
+ if (content.Contains("Message"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Message, global::System.Convert.ToString);
+ }
+ if (content.Contains("Detail"))
+ {
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ErrorDefinitionTypeConverter.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.Workloads.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();
+ }
+ }
+ /// Defines the SAP Application Server instance properties.
+ [System.ComponentModel.TypeConverter(typeof(SapApplicationServerPropertiesTypeConverter))]
+ public partial interface ISapApplicationServerProperties
+
+ {
+
+ }
+}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerProperties.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerProperties.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerProperties.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerProperties.TypeConverter.cs
index 93f81f3bdb8a..b964e624a277 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerProperties.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerProperties.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerProperties ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerProperties).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerProperties.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerProperties.cs
similarity index 73%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerProperties.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerProperties.cs
index 0ec911273337..131c2a3d4a45 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerProperties.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerProperties.cs
@@ -3,32 +3,39 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// Defines the SAP Application Server instance properties.
public partial class SapApplicationServerProperties :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerProperties,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal
{
///
/// Service specific error code which serves as the substatus for the HTTP error code.
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceErrorInternal)Error).Code; }
+ public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceErrorInternal)Error).Code; }
/// Internal error details.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceErrorInternal)Error).Detail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceErrorInternal)Error).Detail; }
+
+ /// Backing field for property.
+ private string _dispatcherStatus;
+
+ /// Application server instance dispatcher status.
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
+ public string DispatcherStatus { get => this._dispatcherStatus; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError _error;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceError _error;
/// Defines the Application Instance errors.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceError()); }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapVirtualInstanceError()); }
/// Backing field for property.
private long? _gatewayPort;
@@ -94,80 +101,83 @@ public partial class SapApplicationServerProperties :
public string KernelVersion { get => this._kernelVersion; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails _loadBalancerDetail;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails _loadBalancerDetail;
///
/// The Load Balancer details such as LoadBalancer ID attached to Application Server Virtual Machines
///
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails LoadBalancerDetail { get => (this._loadBalancerDetail = this._loadBalancerDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerDetails()); }
+ internal Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails LoadBalancerDetail { get => (this._loadBalancerDetail = this._loadBalancerDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerDetails()); }
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string LoadBalancerDetailId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetailsInternal)LoadBalancerDetail).Id; }
+ public string LoadBalancerDetailId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetailsInternal)LoadBalancerDetail).Id; }
/// Description of the error.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Inlined)]
- public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceErrorInternal)Error).Message; }
+ public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceErrorInternal)Error).Message; }
/// Internal Acessors for Code
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceErrorInternal)Error).Code = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceErrorInternal)Error).Code = value; }
/// Internal Acessors for Detail
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceErrorInternal)Error).Detail = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceErrorInternal)Error).Detail = value; }
+
+ /// Internal Acessors for DispatcherStatus
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.DispatcherStatus { get => this._dispatcherStatus; set { {_dispatcherStatus = value;} } }
/// Internal Acessors for Error
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceError()); set { {_error = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceError Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapVirtualInstanceError()); set { {_error = value;} } }
/// Internal Acessors for ErrorProperty
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.ErrorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceErrorInternal)Error).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceErrorInternal)Error).Property = value; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.ErrorProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceErrorInternal)Error).Property; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceErrorInternal)Error).Property = value; }
/// Internal Acessors for GatewayPort
- long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.GatewayPort { get => this._gatewayPort; set { {_gatewayPort = value;} } }
+ long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.GatewayPort { get => this._gatewayPort; set { {_gatewayPort = value;} } }
/// Internal Acessors for Health
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.Health { get => this._health; set { {_health = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapHealthState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.Health { get => this._health; set { {_health = value;} } }
/// Internal Acessors for Hostname
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.Hostname { get => this._hostname; set { {_hostname = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.Hostname { get => this._hostname; set { {_hostname = value;} } }
/// Internal Acessors for IPAddress
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.IPAddress { get => this._iPAddress; set { {_iPAddress = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.IPAddress { get => this._iPAddress; set { {_iPAddress = value;} } }
/// Internal Acessors for IcmHttpPort
- long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.IcmHttpPort { get => this._icmHttpPort; set { {_icmHttpPort = value;} } }
+ long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.IcmHttpPort { get => this._icmHttpPort; set { {_icmHttpPort = value;} } }
/// Internal Acessors for IcmHttpsPort
- long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.IcmHttpsPort { get => this._icmHttpsPort; set { {_icmHttpsPort = value;} } }
+ long? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.IcmHttpsPort { get => this._icmHttpsPort; set { {_icmHttpsPort = value;} } }
/// Internal Acessors for InstanceNo
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.InstanceNo { get => this._instanceNo; set { {_instanceNo = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.InstanceNo { get => this._instanceNo; set { {_instanceNo = value;} } }
/// Internal Acessors for KernelPatch
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.KernelPatch { get => this._kernelPatch; set { {_kernelPatch = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.KernelPatch { get => this._kernelPatch; set { {_kernelPatch = value;} } }
/// Internal Acessors for KernelVersion
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.KernelVersion { get => this._kernelVersion; set { {_kernelVersion = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.KernelVersion { get => this._kernelVersion; set { {_kernelVersion = value;} } }
/// Internal Acessors for LoadBalancerDetail
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.LoadBalancerDetail { get => (this._loadBalancerDetail = this._loadBalancerDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerDetails()); set { {_loadBalancerDetail = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.LoadBalancerDetail { get => (this._loadBalancerDetail = this._loadBalancerDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerDetails()); set { {_loadBalancerDetail = value;} } }
/// Internal Acessors for LoadBalancerDetailId
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.LoadBalancerDetailId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetailsInternal)LoadBalancerDetail).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetailsInternal)LoadBalancerDetail).Id = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.LoadBalancerDetailId { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetailsInternal)LoadBalancerDetail).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetailsInternal)LoadBalancerDetail).Id = value; }
/// Internal Acessors for Message
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceErrorInternal)Error).Message = value; }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceErrorInternal)Error).Message = value; }
/// Internal Acessors for ProvisioningState
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } }
/// Internal Acessors for Status
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.Status { get => this._status; set { {_status = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceStatus? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.Status { get => this._status; set { {_status = value;} } }
/// Internal Acessors for Subnet
- string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.Subnet { get => this._subnet; set { {_subnet = value;} } }
+ string Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.Subnet { get => this._subnet; set { {_subnet = value;} } }
/// Internal Acessors for VMDetail
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerPropertiesInternal.VMDetail { get => this._vMDetail; set { {_vMDetail = value;} } }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails[] Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerPropertiesInternal.VMDetail { get => this._vMDetail; set { {_vMDetail = value;} } }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapVirtualInstanceProvisioningState? _provisioningState;
@@ -191,11 +201,11 @@ public partial class SapApplicationServerProperties :
public string Subnet { get => this._subnet; }
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails[] _vMDetail;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails[] _vMDetail;
/// The list of virtual machines.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails[] VMDetail { get => this._vMDetail; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails[] VMDetail { get => this._vMDetail; }
/// Creates an new instance.
public SapApplicationServerProperties()
@@ -223,8 +233,16 @@ public partial interface ISapApplicationServerProperties :
ReadOnly = true,
Description = @"Internal error details.",
SerializedName = @"details",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[] Detail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[] Detail { get; }
+ /// Application server instance dispatcher status.
+ [Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
+ Required = false,
+ ReadOnly = true,
+ Description = @"Application server instance dispatcher status.",
+ SerializedName = @"dispatcherStatus",
+ PossibleTypes = new [] { typeof(string) })]
+ string DispatcherStatus { get; }
/// Application server instance gateway Port.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Info(
Required = false,
@@ -343,8 +361,8 @@ public partial interface ISapApplicationServerProperties :
ReadOnly = true,
Description = @"The list of virtual machines.",
SerializedName = @"vmDetails",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails[] VMDetail { get; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails[] VMDetail { get; }
}
/// Defines the SAP Application Server instance properties.
@@ -356,11 +374,13 @@ internal partial interface ISapApplicationServerPropertiesInternal
///
string Code { get; set; }
/// Internal error details.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition[] Detail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition[] Detail { get; set; }
+ /// Application server instance dispatcher status.
+ string DispatcherStatus { get; set; }
/// Defines the Application Instance errors.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapVirtualInstanceError Error { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapVirtualInstanceError Error { get; set; }
/// The Virtual Instance for SAP error body.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IErrorDefinition ErrorProperty { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IErrorDefinition ErrorProperty { get; set; }
/// Application server instance gateway Port.
long? GatewayPort { get; set; }
/// Defines the health of SAP Instances.
@@ -382,7 +402,7 @@ internal partial interface ISapApplicationServerPropertiesInternal
///
/// The Load Balancer details such as LoadBalancer ID attached to Application Server Virtual Machines
///
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ILoadBalancerDetails LoadBalancerDetail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ILoadBalancerDetails LoadBalancerDetail { get; set; }
string LoadBalancerDetailId { get; set; }
/// Description of the error.
@@ -394,7 +414,7 @@ internal partial interface ISapApplicationServerPropertiesInternal
/// Application server Subnet.
string Subnet { get; set; }
/// The list of virtual machines.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails[] VMDetail { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails[] VMDetail { get; set; }
}
}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerProperties.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerProperties.json.cs
similarity index 90%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerProperties.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerProperties.json.cs
index 77510bc9ef61..2d529b678699 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapApplicationServerProperties.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapApplicationServerProperties.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class SapApplicationServerProperties
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerProperties.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerProperties.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapApplicationServerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapApplicationServerProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new SapApplicationServerProperties(json) : null;
}
@@ -77,8 +77,8 @@ internal SapApplicationServerProperties(Microsoft.Azure.PowerShell.Cmdlets.Workl
{
return;
}
- {_loadBalancerDetail = If( json?.PropertyT("loadBalancerDetails"), out var __jsonLoadBalancerDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.LoadBalancerDetails.FromJson(__jsonLoadBalancerDetails) : LoadBalancerDetail;}
- {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapVirtualInstanceError.FromJson(__jsonErrors) : Error;}
+ {_loadBalancerDetail = If( json?.PropertyT("loadBalancerDetails"), out var __jsonLoadBalancerDetails) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.LoadBalancerDetails.FromJson(__jsonLoadBalancerDetails) : LoadBalancerDetail;}
+ {_error = If( json?.PropertyT("errors"), out var __jsonErrors) ? Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapVirtualInstanceError.FromJson(__jsonErrors) : Error;}
{_instanceNo = If( json?.PropertyT("instanceNo"), out var __jsonInstanceNo) ? (string)__jsonInstanceNo : (string)InstanceNo;}
{_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? (string)__jsonSubnet : (string)Subnet;}
{_hostname = If( json?.PropertyT("hostname"), out var __jsonHostname) ? (string)__jsonHostname : (string)Hostname;}
@@ -88,7 +88,8 @@ internal SapApplicationServerProperties(Microsoft.Azure.PowerShell.Cmdlets.Workl
{_gatewayPort = If( json?.PropertyT("gatewayPort"), out var __jsonGatewayPort) ? (long?)__jsonGatewayPort : GatewayPort;}
{_icmHttpPort = If( json?.PropertyT("icmHttpPort"), out var __jsonIcmHttpPort) ? (long?)__jsonIcmHttpPort : IcmHttpPort;}
{_icmHttpsPort = If( json?.PropertyT("icmHttpsPort"), out var __jsonIcmHttpsPort) ? (long?)__jsonIcmHttpsPort : IcmHttpsPort;}
- {_vMDetail = If( json?.PropertyT("vmDetails"), out var __jsonVMDetails) ? If( __jsonVMDetails as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IApplicationServerVMDetails) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ApplicationServerVMDetails.FromJson(__u) )) ))() : null : VMDetail;}
+ {_dispatcherStatus = If( json?.PropertyT("dispatcherStatus"), out var __jsonDispatcherStatus) ? (string)__jsonDispatcherStatus : (string)DispatcherStatus;}
+ {_vMDetail = If( json?.PropertyT("vmDetails"), out var __jsonVMDetails) ? If( __jsonVMDetails as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.IApplicationServerVMDetails) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ApplicationServerVMDetails.FromJson(__u) )) ))() : null : VMDetail;}
{_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;}
{_health = If( json?.PropertyT("health"), out var __jsonHealth) ? (string)__jsonHealth : (string)Health;}
{_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;}
@@ -159,6 +160,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode ToJson
AddIf( null != this._icmHttpsPort ? (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNumber((long)this._icmHttpsPort) : null, "icmHttpsPort" ,container.Add );
}
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.SerializationMode.IncludeReadOnly))
+ {
+ AddIf( null != (((object)this._dispatcherStatus)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonString(this._dispatcherStatus.ToString()) : null, "dispatcherStatus" ,container.Add );
+ }
+ if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.SerializationMode.IncludeReadOnly))
{
if (null != this._vMDetail)
{
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsRequest.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsRequest.PowerShell.cs
similarity index 72%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsRequest.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsRequest.PowerShell.cs
index f18d9cb409ef..78e8373b10db 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsRequest.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsRequest.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,29 +63,29 @@ public partial class SapAvailabilityZoneDetailsRequest
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequest DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequest DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new SapAvailabilityZoneDetailsRequest(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new SapAvailabilityZoneDetailsRequest(content);
}
@@ -97,10 +97,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IS
///
/// an instance of the model class.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -115,21 +115,21 @@ internal SapAvailabilityZoneDetailsRequest(global::System.Collections.IDictionar
// actually deserialize
if (content.Contains("AppLocation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequestInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequestInternal)this).AppLocation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequestInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequestInternal)this).AppLocation, global::System.Convert.ToString);
}
if (content.Contains("SapProduct"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequestInternal)this).SapProduct = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType) content.GetValueForProperty("SapProduct",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequestInternal)this).SapProduct, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequestInternal)this).SapProduct = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType) content.GetValueForProperty("SapProduct",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequestInternal)this).SapProduct, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType.CreateFrom);
}
if (content.Contains("DatabaseType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequestInternal)this).DatabaseType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType) content.GetValueForProperty("DatabaseType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequestInternal)this).DatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequestInternal)this).DatabaseType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType) content.GetValueForProperty("DatabaseType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequestInternal)this).DatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType.CreateFrom);
}
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.
@@ -144,15 +144,15 @@ internal SapAvailabilityZoneDetailsRequest(global::System.Management.Automation.
// actually deserialize
if (content.Contains("AppLocation"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequestInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequestInternal)this).AppLocation, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequestInternal)this).AppLocation = (string) content.GetValueForProperty("AppLocation",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequestInternal)this).AppLocation, global::System.Convert.ToString);
}
if (content.Contains("SapProduct"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequestInternal)this).SapProduct = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType) content.GetValueForProperty("SapProduct",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequestInternal)this).SapProduct, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequestInternal)this).SapProduct = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType) content.GetValueForProperty("SapProduct",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequestInternal)this).SapProduct, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapProductType.CreateFrom);
}
if (content.Contains("DatabaseType"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequestInternal)this).DatabaseType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType) content.GetValueForProperty("DatabaseType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequestInternal)this).DatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequestInternal)this).DatabaseType = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType) content.GetValueForProperty("DatabaseType",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequestInternal)this).DatabaseType, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Support.SapDatabaseType.CreateFrom);
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsRequest.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsRequest.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsRequest.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsRequest.TypeConverter.cs
index 873a9ccc6472..698e3feada9f 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsRequest.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsRequest.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequest ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequest ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequest).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequest).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsRequest.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsRequest.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsRequest.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsRequest.cs
index a41d59087717..8b21bc183fec 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsRequest.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsRequest.cs
@@ -3,14 +3,14 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
/// The SAP request to get list of availability zones.
public partial class SapAvailabilityZoneDetailsRequest :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequest,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequestInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequest,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequestInternal
{
/// Backing field for property.
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsRequest.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsRequest.json.cs
similarity index 95%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsRequest.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsRequest.json.cs
index 3849378cd2a5..c2641ee6b470 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsRequest.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsRequest.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -54,13 +54,13 @@ public partial class SapAvailabilityZoneDetailsRequest
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequest.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequest.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequest.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequest.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new SapAvailabilityZoneDetailsRequest(json) : null;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsResult.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsResult.PowerShell.cs
similarity index 78%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsResult.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsResult.PowerShell.cs
index 551991a71fbc..6819ad23531b 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsResult.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsResult.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -65,29 +65,29 @@ public partial class SapAvailabilityZoneDetailsResult
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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsResult DeserializeFromDictionary(global::System.Collections.IDictionary content)
{
return new SapAvailabilityZoneDetailsResult(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 .
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
{
return new SapAvailabilityZoneDetailsResult(content);
}
@@ -97,10 +97,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.IS
///
/// a string containing a JSON serialized instance of this model.
/// an instance of the model class.
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode.Parse(jsonText));
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.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.
@@ -115,13 +115,13 @@ internal SapAvailabilityZoneDetailsResult(global::System.Collections.IDictionary
// actually deserialize
if (content.Contains("AvailabilityZonePair"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsResultInternal)this).AvailabilityZonePair = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZonePair[]) content.GetValueForProperty("AvailabilityZonePair",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsResultInternal)this).AvailabilityZonePair, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapAvailabilityZonePairTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsResultInternal)this).AvailabilityZonePair = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZonePair[]) content.GetValueForProperty("AvailabilityZonePair",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsResultInternal)this).AvailabilityZonePair, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapAvailabilityZonePairTypeConverter.ConvertFrom));
}
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.
@@ -136,7 +136,7 @@ internal SapAvailabilityZoneDetailsResult(global::System.Management.Automation.P
// actually deserialize
if (content.Contains("AvailabilityZonePair"))
{
- ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsResultInternal)this).AvailabilityZonePair = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZonePair[]) content.GetValueForProperty("AvailabilityZonePair",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsResultInternal)this).AvailabilityZonePair, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapAvailabilityZonePairTypeConverter.ConvertFrom));
+ ((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsResultInternal)this).AvailabilityZonePair = (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZonePair[]) content.GetValueForProperty("AvailabilityZonePair",((Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsResultInternal)this).AvailabilityZonePair, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapAvailabilityZonePairTypeConverter.ConvertFrom));
}
AfterDeserializePSObject(content);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsResult.TypeConverter.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsResult.TypeConverter.cs
similarity index 97%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsResult.TypeConverter.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsResult.TypeConverter.cs
index 6f7726000656..3a8bb854cd14 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsResult.TypeConverter.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsResult.TypeConverter.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue)
///
/// an instance of , or null if there is no suitable conversion.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsResult ConvertFrom(dynamic sourceValue)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsResult ConvertFrom(dynamic sourceValue)
{
if (null == sourceValue)
{
return null;
}
global::System.Type type = sourceValue.GetType();
- if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsResult).IsAssignableFrom(type))
+ if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsResult).IsAssignableFrom(type))
{
return sourceValue;
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsResult.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsResult.cs
similarity index 80%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsResult.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsResult.cs
index 91fdc81d48c8..d3b46939cbb6 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsResult.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsResult.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -11,16 +11,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401
/// The list of supported availability zone pairs which are part of SAP HA deployment.
///
public partial class SapAvailabilityZoneDetailsResult :
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsResult,
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsResultInternal
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsResult,
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsResultInternal
{
/// Backing field for property.
- private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZonePair[] _availabilityZonePair;
+ private Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZonePair[] _availabilityZonePair;
/// Gets the list of availability zone pairs.
[Microsoft.Azure.PowerShell.Cmdlets.Workloads.Origin(Microsoft.Azure.PowerShell.Cmdlets.Workloads.PropertyOrigin.Owned)]
- public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZonePair[] AvailabilityZonePair { get => this._availabilityZonePair; set => this._availabilityZonePair = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZonePair[] AvailabilityZonePair { get => this._availabilityZonePair; set => this._availabilityZonePair = value; }
/// Creates an new instance.
public SapAvailabilityZoneDetailsResult()
@@ -38,8 +38,8 @@ public partial interface ISapAvailabilityZoneDetailsResult :
ReadOnly = false,
Description = @"Gets the list of availability zone pairs.",
SerializedName = @"availabilityZonePairs",
- PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZonePair) })]
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZonePair[] AvailabilityZonePair { get; set; }
+ PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZonePair) })]
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZonePair[] AvailabilityZonePair { get; set; }
}
/// The list of supported availability zone pairs which are part of SAP HA deployment.
@@ -47,7 +47,7 @@ internal partial interface ISapAvailabilityZoneDetailsResultInternal
{
/// Gets the list of availability zone pairs.
- Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZonePair[] AvailabilityZonePair { get; set; }
+ Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZonePair[] AvailabilityZonePair { get; set; }
}
}
\ No newline at end of file
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsResult.json.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsResult.json.cs
similarity index 90%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsResult.json.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsResult.json.cs
index ca5409e64e39..6b911b0d6442 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZoneDetailsResult.json.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZoneDetailsResult.json.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Extensions;
@@ -56,13 +56,13 @@ public partial class SapAvailabilityZoneDetailsResult
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject container, ref bool returnNow);
///
- /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsResult.
+ /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsResult.
///
/// a to deserialize from.
///
- /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsResult.
+ /// an instance of Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsResult.
///
- public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZoneDetailsResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
+ public static Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZoneDetailsResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonNode node)
{
return node is Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonObject json ? new SapAvailabilityZoneDetailsResult(json) : null;
}
@@ -79,7 +79,7 @@ internal SapAvailabilityZoneDetailsResult(Microsoft.Azure.PowerShell.Cmdlets.Wor
{
return;
}
- {_availabilityZonePair = If( json?.PropertyT("availabilityZonePairs"), out var __jsonAvailabilityZonePairs) ? If( __jsonAvailabilityZonePairs as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.ISapAvailabilityZonePair) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20230401.SapAvailabilityZonePair.FromJson(__u) )) ))() : null : AvailabilityZonePair;}
+ {_availabilityZonePair = If( json?.PropertyT("availabilityZonePairs"), out var __jsonAvailabilityZonePairs) ? If( __jsonAvailabilityZonePairs as Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.ISapAvailabilityZonePair) (Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview.SapAvailabilityZonePair.FromJson(__u) )) ))() : null : AvailabilityZonePair;}
AfterFromJson(json);
}
diff --git a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZonePair.PowerShell.cs b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZonePair.PowerShell.cs
similarity index 79%
rename from src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZonePair.PowerShell.cs
rename to src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZonePair.PowerShell.cs
index c7220b7772fe..80ad9633156e 100644
--- a/src/Workloads/Workloads.Autorest/generated/api/Models/Api20230401/SapAvailabilityZonePair.PowerShell.cs
+++ b/src/Workloads/Workloads.Autorest/generated/api/Models/Api20231001Preview/SapAvailabilityZonePair.PowerShell.cs
@@ -3,7 +3,7 @@
// 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.Workloads.Models.Api20230401
+namespace Microsoft.Azure.PowerShell.Cmdlets.Workloads.Models.Api20231001Preview
{
using Microsoft.Azure.PowerShell.Cmdlets.Workloads.Runtime.PowerShell;
@@ -63,27 +63,29 @@ public partial class SapAvailabilityZonePair
partial void OverrideToString(ref string stringResult, ref bool returnNow);
///
- /// Deserializes a